Example #1
0
        public override byte[] GetSqlInfo(byte[] items, int bufferLength)
        {
            lock (this.db)
            {
                byte[] buffer       = new byte[bufferLength];
                int[]  statusVector = FesConnection.GetNewStatusVector();
                int    stmtHandle   = this.handle;

                FbClient.isc_dsql_sql_info(
                    statusVector,
                    ref stmtHandle,
                    (short)items.Length,
                    items,
                    (short)bufferLength,
                    buffer);

                this.db.ParseStatusVector(statusVector);

                return(buffer);
            }
        }