private int GetInfoInt32Unhandled(ODBC32.SQL_INFO infotype) { byte[] buffer = new byte[4]; ConnectionHandle.GetInfo1(infotype, buffer); return(BitConverter.ToInt32(buffer, 0)); }
internal string GetInfoStringUnhandled(ODBC32.SQL_INFO info) { return(GetInfoStringUnhandled(info, false)); }
internal ODBC32.RetCode GetInfo1(ODBC32.SQL_INFO info, byte[] buffer) { ODBC32.RetCode retcode = Interop.Odbc.SQLGetInfoW(this, info, buffer, checked ((short)buffer.Length), ADP.PtrZero); return(retcode); }
internal static partial ODBC32.SQLRETURN SQLGetInfoW( /*SQLHBDC*/ OdbcConnectionHandle hdbc, /*SQLUSMALLINT*/ ODBC32.SQL_INFO fInfoType, /*SQLPOINTER*/ byte[] rgbInfoValue, /*SQLSMALLINT*/ short cbInfoValueMax, /*SQLSMALLINT* */ IntPtr pcbInfoValue);
internal ODBC32.RetCode GetInfo2(ODBC32.SQL_INFO info, byte[] buffer, out short cbActual) { ODBC32.RetCode retcode = Interop.Odbc.SQLGetInfoW(this, info, buffer, checked ((short)buffer.Length), out cbActual); return(retcode); }
internal ODBC32.RetCode GetInfo2(ODBC32.SQL_INFO info, byte[] buffer, out short cbActual) { ODBC32.RetCode code = UnsafeNativeMethods.SQLGetInfoW(this, info, buffer, (short)buffer.Length, out cbActual); Bid.Trace("<odbc.SQLGetInfo|ODBC> SQLRETURN=%d, InfoType=%d, BufferLength=%d, StringLength=%d\n", (int)code, (int)info, buffer.Length, cbActual); return(code); }
internal ODBC32.RetCode GetInfo1(ODBC32.SQL_INFO info, byte[] buffer) { ODBC32.RetCode code = UnsafeNativeMethods.SQLGetInfoW(this, info, buffer, (short)buffer.Length, ADP.PtrZero); Bid.Trace("<odbc.SQLGetInfo|ODBC> SQLRETURN=%d, InfoType=%d, BufferLength=%d\n", (int)code, (int)info, buffer.Length); return(code); }
internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLGetInfoW( /*SQLHBDC*/ OdbcConnectionHandle hdbc, /*SQLUSMALLINT*/ ODBC32.SQL_INFO fInfoType, /*SQLPOINTER*/ byte[] rgbInfoValue, /*SQLSMALLINT*/ short cbInfoValueMax, /*SQLSMALLINT* */ out short pcbInfoValue);
internal static extern ODBC32.RetCode SQLGetInfoW(OdbcConnectionHandle hdbc, ODBC32.SQL_INFO fInfoType, byte[] rgbInfoValue, short cbInfoValueMax, IntPtr pcbInfoValue);