Exemplo n.º 1
0
 private int GetInfoInt32Unhandled(ODBC32.SQL_INFO infotype)
 {
     byte[] buffer = new byte[4];
     ConnectionHandle.GetInfo1(infotype, buffer);
     return(BitConverter.ToInt32(buffer, 0));
 }
Exemplo n.º 2
0
 internal string GetInfoStringUnhandled(ODBC32.SQL_INFO info)
 {
     return(GetInfoStringUnhandled(info, false));
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 internal static partial ODBC32.SQLRETURN SQLGetInfoW(
     /*SQLHBDC*/ OdbcConnectionHandle hdbc,
     /*SQLUSMALLINT*/ ODBC32.SQL_INFO fInfoType,
     /*SQLPOINTER*/ byte[] rgbInfoValue,
     /*SQLSMALLINT*/ short cbInfoValueMax,
     /*SQLSMALLINT* */ IntPtr pcbInfoValue);
Exemplo n.º 5
0
 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);
 }
Exemplo n.º 8
0
 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);