Exemple #1
0
        public void ConvertRetinfoToNativeWhenItagSequenceIsNegative()
        {
            var retinfo = new JET_RETINFO {
                ibLongValue = 0, itagSequence = Int32.MinValue
            };

            NATIVE_RETINFO native = retinfo.GetNativeRetinfo();
        }
Exemple #2
0
 public static extern int JetRetrieveColumn(
     IntPtr sesid,
     IntPtr tableid,
     uint columnid,
     IntPtr pvData,
     uint cbData,
     out uint cbActual,
     uint grbit,
     [In][Out] ref NATIVE_RETINFO pretinfo);
Exemple #3
0
        public void ConvertRetinfoToNative()
        {
            var retinfo = new JET_RETINFO {
                ibLongValue = 1, itagSequence = 2
            };

            NATIVE_RETINFO native = retinfo.GetNativeRetinfo();

            Assert.AreEqual(1U, native.ibLongValue);
            Assert.AreEqual(2U, native.itagSequence);
        }
Exemple #4
0
        public void ConvertRetinfoFromNative()
        {
            var native = new NATIVE_RETINFO {
                columnidNextTagged = 257
            };

            var retinfo = new JET_RETINFO();

            retinfo.SetFromNativeRetinfo(native);

            Assert.AreEqual(257U, retinfo.columnidNextTagged.Value);
        }
Exemple #5
0
        public void ConvertRetinfoToNative()
        {
            var retinfo = new JET_RETINFO();

            retinfo.ibLongValue  = 1;
            retinfo.itagSequence = 2;

            NATIVE_RETINFO native = retinfo.GetNativeRetinfo();

            Assert.AreEqual <uint>(1, native.ibLongValue);
            Assert.AreEqual <uint>(2, native.itagSequence);
        }
Exemple #6
0
        public void ConvertRetinfo()
        {
            var retinfo = new JET_RETINFO {
                ibLongValue = 1, itagSequence = 2
            };

            NATIVE_RETINFO native = retinfo.GetNativeRetinfo();

            native.columnidNextTagged = 300;

            retinfo.SetFromNativeRetinfo(native);
            Assert.AreEqual(1, retinfo.ibLongValue);
            Assert.AreEqual(2, retinfo.itagSequence);
            Assert.AreEqual(300U, retinfo.columnidNextTagged.Value);
        }