Exemple #1
0
 public DrdaResultSet(
     DrdaStreamReader reader)
 {
     Locator    = reader.ReadUInt32();
     CursorName = reader.ReadVcmVcs();
     Rows       = reader.ReadUInt32();
 }
Exemple #2
0
        public CommAreaGroupDescriptor(
            DrdaStreamReader reader)
        {
            if (reader.ReadUInt8() == 0xFF)
            {
                return;
            }

            SqlCode  = reader.ReadUInt32();
            SqlState = reader.ReadString(5);
            var sqlErrProc = reader.ReadString(8);

            if (reader.ReadUInt8() != 0xFF)
            {
                RowsFetched = reader.ReadUInt64();
                RowsUpdated = reader.ReadUInt32();

                var sqlErrs = reader.ReadBytes(12); // 3 * sizeof(UInt32)
                var sqlWarn = reader.ReadBytes(11); // 11 * sizeof(Byte)

                var rdbName = reader.ReadUInt16();

                SqlMessage = reader.ReadVcmVcs();
            }

            if (reader.ReadUInt8() != 0xFF)
            {
                // WORKWORK
            }
        }
Exemple #3
0
        public DrdaColumn(
            DrdaStreamReader reader)
        {
            Precision = reader.ReadUInt16();
            Scale     = reader.ReadUInt16();
            Length    = reader.ReadUInt64();
            Db2Type   = (Db2Type)reader.ReadUInt16();

            CcsId    = reader.ReadUInt16();
            ArrayExt = reader.ReadUInt8();
            Unnamed  = reader.ReadUInt16();

            Name    = reader.ReadVcmVcs();
            Label   = reader.ReadVcmVcs();
            Comment = reader.ReadVcmVcs();

            var hiByte = reader.ReadUInt8();

            if (hiByte != 0xFF)
            {
                TypeName  = reader.ReadVcmVcs(hiByte);
                ClassName = reader.ReadVcmVcs();
            }

            // ReSharper disable once RedundantAssignment
            reader.ReadUInt8();

            KeyMem        = reader.ReadUInt16();
            Updateable    = reader.ReadUInt16();
            Generated     = reader.ReadUInt16();
            ParameterMode = reader.ReadUInt16();

            RdbName  = reader.ReadVarString();
            CoreName = reader.ReadVcmVcs();
            BaseName = reader.ReadVcmVcs();
            Scheme   = reader.ReadVcmVcs();
            DxName   = reader.ReadVcmVcs();
        }