public const int SQL_C_CHAR = SQL_CHAR;\r
public const int SQL_C_DEFAULT = 99;\r
\r
+ public const int SQL_BLOB_LOCATOR = 31;\r
+ public const int SQL_CLOB_LOCATOR = 41;\r
+ public const int SQL_DBCLOB_LOCATOR = -351;\r
+\r
+ public const int SQL_C_BLOB_LOCATOR = SQL_BLOB_LOCATOR;\r
+ public const int SQL_C_CLOB_LOCATOR = SQL_CLOB_LOCATOR;\r
+ public const int SQL_C_DBCLOB_LOCATOR = SQL_DBCLOB_LOCATOR;\r
+\r
public const int SQL_USER_DEFINED_TYPE = (-450);\r
\r
/* SQLDriverConnect Options */\r
internal static extern short SQLBindParameter(IntPtr stmtHandle, ushort paramNumber, \r
short dataType, short valueType, short paramType, uint colSize, short decDigits,\r
ref int dataBufferPtr, int dataBufferLength, int StrLen_or_IndPtr);\r
-\r
+ [DllImport("db2cli.dll", EntryPoint = "SQLGetLength")]\r
+ internal static extern short SQLGetLength( IntPtr stmtHandle, short locatorCType, int Locator,\r
+ IntPtr stringLength, IntPtr indicatorValue);\r
+ [DllImport("db2cli.dll", EntryPoint = "SQLGetPosition")]\r
+ internal static extern short SQLGetPosition(IntPtr stmtHandle, short locatorCType, int sourceLocator, int searchLocator, \r
+ string searchLiteral, int searchLiteralLength, uint fromPosition, IntPtr locatedAt, IntPtr indicatorValue);\r
+ [DllImport("db2cli.dll", EntryPoint = "SQLGetPosition")]\r
+ internal static extern short SQLBindFileToCol (IntPtr stmtHandle, ushort colNum, string fileName, IntPtr fileNameLength, \r
+ IntPtr fileOptions, short maxFileNameLength, IntPtr stringLength, IntPtr indicatorValue);\r
+ [DllImport("db2cli.dll", EntryPoint = "SQLGetPosition")]\r
+ internal static extern short SQLBindFileToParam (IntPtr stmtHandle, ushort targetType, short dataType, string fileName,\r
+ IntPtr fileNameLength, short maxFileNameLength, IntPtr indicatorValue);\r
}\r
}\r