odbtp.h | odbtp.h | |||
---|---|---|---|---|
/* $Id: odbtp.h,v 1.5 2003/04/21 19:49:13 rtwitty Exp $ */ | /* $Id: odbtp.h,v 1.21 2003/12/07 04:40:52 rtwitty Exp $ */ | |||
/* | /* | |||
odbtp - ODBTP client library | odbtp - ODBTP client library | |||
Copyright (C) 2002 Robert E. Twitty <rtwitty@users.sourceforge.net> | Copyright (C) 2002 Robert E. Twitty <rtwitty@users.sourceforge.net> | |||
This library is free software; you can redistribute it and/or | This library is free software; you can redistribute it and/or | |||
modify it under the terms of the GNU Lesser General Public | modify it under the terms of the GNU Lesser General Public | |||
License as published by the Free Software Foundation; either | License as published by the Free Software Foundation; either | |||
version 2.1 of the License, or (at your option) any later version. | version 2.1 of the License, or (at your option) any later version. | |||
skipping to change at line 24 | skipping to change at line 24 | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
Lesser General Public License for more details. | Lesser General Public License for more details. | |||
You should have received a copy of the GNU Lesser General Public | You should have received a copy of the GNU Lesser General Public | |||
License along with this library; if not, write to the Free Software | License along with this library; if not, write to the Free Software | |||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 U SA | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 U SA | |||
*/ | */ | |||
#ifndef _ODBTP_H_ | #ifndef _ODBTP_H_ | |||
#define _ODBTP_H_ | #define _ODBTP_H_ | |||
#define ODBTP_LIB_VERSION "1.0" | #define ODBTP_LIB_VERSION "1.1" | |||
/* ODBTP Connection Level Request Codes */ | /* ODBTP Connection Level Request Codes */ | |||
#define ODBTP_LOGIN 0x01 | #define ODBTP_LOGIN 0x01 | |||
#define ODBTP_LOGOUT 0x02 | #define ODBTP_LOGOUT 0x02 | |||
#define ODBTP_GETCONNID 0x03 | #define ODBTP_GETCONNID 0x03 | |||
#define ODBTP_GETATTR 0x04 | #define ODBTP_GETATTR 0x04 | |||
#define ODBTP_SETATTR 0x05 | #define ODBTP_SETATTR 0x05 | |||
#define ODBTP_COMMIT 0x06 | #define ODBTP_COMMIT 0x06 | |||
#define ODBTP_ROLLBACK 0x07 | #define ODBTP_ROLLBACK 0x07 | |||
#define ODBTP_CANCELREQ 0x1F | #define ODBTP_CANCELREQ 0x1F | |||
skipping to change at line 48 | skipping to change at line 48 | |||
#define ODBTP_PREPARE 0x21 | #define ODBTP_PREPARE 0x21 | |||
#define ODBTP_BINDCOL 0x22 | #define ODBTP_BINDCOL 0x22 | |||
#define ODBTP_BINDPARAM 0x23 | #define ODBTP_BINDPARAM 0x23 | |||
#define ODBTP_GETPARAM 0x24 | #define ODBTP_GETPARAM 0x24 | |||
#define ODBTP_SETPARAM 0x25 | #define ODBTP_SETPARAM 0x25 | |||
#define ODBTP_FETCHROW 0x26 | #define ODBTP_FETCHROW 0x26 | |||
#define ODBTP_FETCHRESULT 0x27 | #define ODBTP_FETCHRESULT 0x27 | |||
#define ODBTP_GETROWCOUNT 0x28 | #define ODBTP_GETROWCOUNT 0x28 | |||
#define ODBTP_GETCOLINFO 0x29 | #define ODBTP_GETCOLINFO 0x29 | |||
#define ODBTP_GETPARAMINFO 0x2A | #define ODBTP_GETPARAMINFO 0x2A | |||
#define ODBTP_SETCURSOR 0x2B | #define ODBTP_GETCURSOR 0x2B | |||
#define ODBTP_SETCOL 0x2C | #define ODBTP_SETCURSOR 0x2C | |||
#define ODBTP_ROWOP 0x2D | #define ODBTP_SETCOL 0x2D | |||
#define ODBTP_ROWOP 0x2E | ||||
#define ODBTP_PREPAREPROC 0x2F | ||||
#define ODBTP_DROP 0x3F | ||||
/* ODBTP Connection Level Response Codes */ | /* ODBTP Connection Level Response Codes */ | |||
#define ODBTP_OK 0x80 | #define ODBTP_OK 0x80 | |||
#define ODBTP_CONNECTID 0x81 | #define ODBTP_CONNECTID 0x81 | |||
#define ODBTP_ATTRIBUTE 0x82 | #define ODBTP_ATTRIBUTE 0x82 | |||
#define ODBTP_CANCELRESP 0x9F | #define ODBTP_CANCELRESP 0x9F | |||
/* ODBTP Query Level Response Codes */ | /* ODBTP Query Level Response Codes */ | |||
#define ODBTP_QUERYOK 0xA0 | #define ODBTP_QUERYOK 0xA0 | |||
#define ODBTP_COLINFO 0xA1 | #define ODBTP_COLINFO 0xA1 | |||
#define ODBTP_ROWDATA 0xA2 | #define ODBTP_ROWDATA 0xA2 | |||
#define ODBTP_ROWCOUNT 0xA3 | #define ODBTP_ROWCOUNT 0xA3 | |||
#define ODBTP_PARAMINFO 0xA4 | #define ODBTP_PARAMINFO 0xA4 | |||
#define ODBTP_PARAMDATA 0xA5 | #define ODBTP_PARAMDATA 0xA5 | |||
#define ODBTP_NODATA 0xA6 | #define ODBTP_NODATA 0xA6 | |||
#define ODBTP_ROWSTATUS 0xA7 | #define ODBTP_CURSOR 0xA7 | |||
#define ODBTP_ROWSTATUS 0xA8 | ||||
#define ODBTP_COLINFOEX 0xA9 | ||||
#define ODBTP_PARAMINFOEX 0xAA | ||||
/* ODBTP Error Response Codes */ | /* ODBTP Error Response Codes */ | |||
#define ODBTP_ERROR 0xE0 | #define ODBTP_ERROR 0xE0 | |||
#define ODBTP_UNSUPPORTED 0xE1 | #define ODBTP_UNSUPPORTED 0xE1 | |||
#define ODBTP_INVALID 0xE2 | #define ODBTP_INVALID 0xE2 | |||
/* ODBTP Disconnect Response Codes */ | /* ODBTP Disconnect Response Codes */ | |||
#define ODBTP_DISCONNECT 0xF0 | #define ODBTP_DISCONNECT 0xF0 | |||
#define ODBTP_VIOLATION 0xF1 | #define ODBTP_VIOLATION 0xF1 | |||
#define ODBTP_UNAVAILABLE 0xF2 | #define ODBTP_UNAVAILABLE 0xF2 | |||
skipping to change at line 103 | skipping to change at line 109 | |||
#define ODB_NUMERIC 2 | #define ODB_NUMERIC 2 | |||
#define ODB_REAL 7 | #define ODB_REAL 7 | |||
#define ODB_SMALLINT (-15) | #define ODB_SMALLINT (-15) | |||
#define ODB_USMALLINT (-17) | #define ODB_USMALLINT (-17) | |||
#define ODB_TIME 92 | #define ODB_TIME 92 | |||
#define ODB_TINYINT (-26) | #define ODB_TINYINT (-26) | |||
#define ODB_UTINYINT (-28) | #define ODB_UTINYINT (-28) | |||
#define ODB_WCHAR (-8) | #define ODB_WCHAR (-8) | |||
/* ODB Login Types */ | /* ODB Login Types */ | |||
#define ODB_LOGIN_NORMAL 0x00 | #define ODB_LOGIN_NORMAL 0 | |||
#define ODB_LOGIN_RESERVED 0x01 | #define ODB_LOGIN_RESERVED 1 | |||
#define ODB_LOGIN_SINGLE 0x02 | #define ODB_LOGIN_SINGLE 2 | |||
/* ODB Attributes */ | /* ODB Numeric Attributes */ | |||
#define ODB_ATTR_QUERYTIMEOUT 0x00 | #define ODB_ATTR_DRIVER 0 | |||
#define ODB_ATTR_FETCHROWCOUNT 0x01 | #define ODB_ATTR_FETCHROWCOUNT 1 | |||
#define ODB_ATTR_TRANSACTIONS 0x02 | #define ODB_ATTR_TRANSACTIONS 2 | |||
#define ODB_ATTR_DESCRIBEPARAMS 3 | ||||
#define ODB_ATTR_UNICODESQL 4 | ||||
#define ODB_ATTR_FULLCOLINFO 5 | ||||
#define ODB_ATTR_QUERYTIMEOUT 6 | ||||
#define ODB_ATTR_OICLEVEL 7 | ||||
#define ODB_ATTR_TXNCAPABLE 8 | ||||
/* ODB String Attributes */ | ||||
#define ODB_ATTR_STRING 0x10000 | ||||
#define ODB_ATTR_DSN (0|ODB_ATTR_STRING) | ||||
#define ODB_ATTR_DRIVERNAME (1|ODB_ATTR_STRING) | ||||
#define ODB_ATTR_DRIVERVER (2|ODB_ATTR_STRING) | ||||
#define ODB_ATTR_DRIVERODBCVER (3|ODB_ATTR_STRING) | ||||
#define ODB_ATTR_DBMSNAME (4|ODB_ATTR_STRING) | ||||
#define ODB_ATTR_DBMSVER (5|ODB_ATTR_STRING) | ||||
#define ODB_ATTR_SERVERNAME (6|ODB_ATTR_STRING) | ||||
#define ODB_ATTR_USERNAME (7|ODB_ATTR_STRING) | ||||
#define ODB_ATTR_DATABASENAME (8|ODB_ATTR_STRING) | ||||
/* ODB ODBC Driver types */ | ||||
#define ODB_DRIVER_UNKNOWN 0 | ||||
#define ODB_DRIVER_MSSQL 1 | ||||
#define ODB_DRIVER_JET 2 | ||||
#define ODB_DRIVER_FOXPRO 3 | ||||
#define ODB_DRIVER_ORACLE 4 | ||||
#define ODB_DRIVER_SYBASE 5 | ||||
#define ODB_DRIVER_MYSQL 6 | ||||
/* ODB Transaction Types */ | /* ODB Transaction Types */ | |||
#define ODB_TXN_NONE 0x00 | #define ODB_TXN_NONE 0 | |||
#define ODB_TXN_READUNCOMMITTED 0x01 | #define ODB_TXN_READUNCOMMITTED 1 | |||
#define ODB_TXN_READCOMMITTED 0x02 | #define ODB_TXN_READCOMMITTED 2 | |||
#define ODB_TXN_REPEATABLEREAD 0x03 | #define ODB_TXN_REPEATABLEREAD 3 | |||
#define ODB_TXN_SERIALIZABLE 0x04 | #define ODB_TXN_SERIALIZABLE 4 | |||
/* ODB Parameter Types */ | /* ODB ODBC Interface Conformace Levels */ | |||
#define ODB_PARAM_NONE 0x00 | #define ODB_OIC_CORE 1 | |||
#define ODB_PARAM_INPUT 0x01 | #define ODB_OIC_LEVEL1 2 | |||
#define ODB_PARAM_OUTPUT 0x02 | #define ODB_OIC_LEVEL2 3 | |||
#define ODB_PARAM_INOUT (ODB_PARAM_INPUT | ODB_PARAM_OUTPUT) | ||||
/* ODB Col Info Flags */ | ||||
#define ODB_COLINFO_NOTNULL 0x0001 | ||||
#define ODB_COLINFO_UNSIGNED 0x0002 | ||||
#define ODB_COLINFO_AUTONUMBER 0x0004 | ||||
#define ODB_COLINFO_PRIMARYKEY 0x0008 | ||||
#define ODB_COLINFO_HIDDEN 0x0010 | ||||
/* ODB Param Types */ | ||||
#define ODB_PARAM_NONE 0x0000 | ||||
#define ODB_PARAM_INPUT 0x0001 | ||||
#define ODB_PARAM_OUTPUT 0x0002 | ||||
#define ODB_PARAM_INOUT (ODB_PARAM_INPUT | ODB_PARAM_OUTPUT) | ||||
#define ODB_PARAM_RETURNVAL (0x0004 | ODB_PARAM_OUTPUT) | ||||
#define ODB_PARAM_RESULTCOL 0x0008 | ||||
#define ODB_PARAM_DESCRIBED 0x8000 | ||||
/* ODB Length Indicators */ | /* ODB Length Indicators */ | |||
#define ODB_NULL (-1) | #define ODB_NULL (-1) | |||
#define ODB_DEFAULT (-5) | #define ODB_DEFAULT (-5) | |||
#define ODB_IGNORE (-6) | #define ODB_IGNORE (-6) | |||
/* ODB Cursor Types */ | /* ODB Cursor Types */ | |||
#define ODB_CURSOR_FORWARD 0 | #define ODB_CURSOR_FORWARD 0 | |||
#define ODB_CURSOR_STATIC 1 | #define ODB_CURSOR_STATIC 1 | |||
#define ODB_CURSOR_KEYSET 2 | #define ODB_CURSOR_KEYSET 2 | |||
skipping to change at line 174 | skipping to change at line 222 | |||
/* ODB Row Status Values */ | /* ODB Row Status Values */ | |||
#define ODB_ROWSTAT_ERROR 0 | #define ODB_ROWSTAT_ERROR 0 | |||
#define ODB_ROWSTAT_SUCCESS 1 | #define ODB_ROWSTAT_SUCCESS 1 | |||
#define ODB_ROWSTAT_UPDATED 2 | #define ODB_ROWSTAT_UPDATED 2 | |||
#define ODB_ROWSTAT_DELETED 3 | #define ODB_ROWSTAT_DELETED 3 | |||
#define ODB_ROWSTAT_ADDED 4 | #define ODB_ROWSTAT_ADDED 4 | |||
#define ODB_ROWSTAT_NOROW 5 | #define ODB_ROWSTAT_NOROW 5 | |||
#define ODB_ROWSTAT_UNKNOWN 0xFFFFFFFF | #define ODB_ROWSTAT_UNKNOWN 0xFFFFFFFF | |||
/* Error Codes */ | /* Error Codes */ | |||
#define ODBTPERR_NONE 0 | #define ODBTPERR_NONE 0 | |||
#define ODBTPERR_MEMORY 1 | #define ODBTPERR_MEMORY 1 | |||
#define ODBTPERR_HANDLE 2 | #define ODBTPERR_HANDLE 2 | |||
#define ODBTPERR_CONNECT 3 | #define ODBTPERR_CONNECT 3 | |||
#define ODBTPERR_READ 4 | #define ODBTPERR_READ 4 | |||
#define ODBTPERR_SEND 5 | #define ODBTPERR_SEND 5 | |||
#define ODBTPERR_TIMEOUTCONN 6 | #define ODBTPERR_TIMEOUTCONN 6 | |||
#define ODBTPERR_TIMEOUTREAD 7 | #define ODBTPERR_TIMEOUTREAD 7 | |||
#define ODBTPERR_TIMEOUTSEND 8 | #define ODBTPERR_TIMEOUTSEND 8 | |||
#define ODBTPERR_CONNECTED 9 | #define ODBTPERR_CONNECTED 9 | |||
#define ODBTPERR_PROTOCOL 10 | #define ODBTPERR_PROTOCOL 10 | |||
#define ODBTPERR_RESPONSE 11 | #define ODBTPERR_RESPONSE 11 | |||
#define ODBTPERR_MAXQUERYS 12 | #define ODBTPERR_MAXQUERYS 12 | |||
#define ODBTPERR_COLNUMBER 13 | #define ODBTPERR_COLNUMBER 13 | |||
#define ODBTPERR_FETCHROW 14 | #define ODBTPERR_COLNAME 14 | |||
#define ODBTPERR_COLNAME 15 | #define ODBTPERR_FETCHROW 15 | |||
#define ODBTPERR_PARAMNUMBER 16 | #define ODBTPERR_NOTPREPPROC 16 | |||
#define ODBTPERR_PARAMBIND 17 | #define ODBTPERR_NOPARAMINFO 17 | |||
#define ODBTPERR_PARAMGET 18 | #define ODBTPERR_PARAMNUMBER 18 | |||
#define ODBTPERR_ATTRTYPE 19 | #define ODBTPERR_PARAMNAME 19 | |||
#define ODBTPERR_GETQUERY 20 | #define ODBTPERR_PARAMBIND 20 | |||
#define ODBTPERR_SERVER 100 | #define ODBTPERR_PARAMGET 21 | |||
#define ODBTPERR_ATTRTYPE 22 | ||||
#define ODBTPERR_GETQUERY 23 | ||||
#define ODBTPERR_INTERFFILE 24 | ||||
#define ODBTPERR_INTERFSYN 25 | ||||
#define ODBTPERR_INTERFTYPE 26 | ||||
#define ODBTPERR_CONNSTRLEN 27 | ||||
#define ODBTPERR_NOROWCACHE 28 | ||||
#define ODBTPERR_SEEKROWPOS 29 | ||||
#define ODBTPERR_DETACHED 30 | ||||
#define ODBTPERR_GETTYPEINFO 31 | ||||
#define ODBTPERR_LOADTYPES 32 | ||||
#define ODBTPERR_NOREQUEST 33 | ||||
#define ODBTPERR_FETCHEDROWS 34 | ||||
#define ODBTPERR_DISCONNECTED 35 | ||||
#define ODBTPERR_SERVER 100 | ||||
/* SQL Data Types */ | ||||
#define SQL_BIT (-7) | ||||
#define SQL_TINYINT (-6) | ||||
#define SQL_SMALLINT 5 | ||||
#define SQL_INTEGER 4 | ||||
#define SQL_INT 4 | ||||
#define SQL_BIGINT (-5) | ||||
#define SQL_NUMERIC 2 | ||||
#define SQL_REAL 7 | ||||
#define SQL_FLOAT 6 | ||||
#define SQL_DOUBLE 8 | ||||
#define SQL_DECIMAL 3 | ||||
#define SQL_TYPE_TIMESTAMP 93 | ||||
#define SQL_DATETIME 93 | ||||
#define SQL_CHAR 1 | ||||
#define SQL_VARCHAR 12 | ||||
#define SQL_LONGVARCHAR (-1) | ||||
#define SQL_TEXT (-1) | ||||
#define SQL_WCHAR (-8) | ||||
#define SQL_NCHAR (-8) | ||||
#define SQL_WVARCHAR (-9) | ||||
#define SQL_NVARCHAR (-9) | ||||
#define SQL_WLONGVARCHAR (-10) | ||||
#define SQL_NTEXT (-10) | ||||
#define SQL_BINARY (-2) | ||||
#define SQL_VARBINARY (-3) | ||||
#define SQL_LONGVARBINARY (-4) | ||||
#define SQL_IMAGE (-4) | ||||
#define SQL_GUID (-11) | ||||
#define SQL_VARIANT (-150) | ||||
/* Miscellaneous Definitions */ | /* Miscellaneous Definitions */ | |||
#ifndef TRUE | #ifndef TRUE | |||
#define TRUE 1 | #define TRUE 1 | |||
#endif | #endif | |||
#ifndef FALSE | #ifndef FALSE | |||
#define FALSE 0 | #define FALSE 0 | |||
#endif | #endif | |||
skipping to change at line 281 | skipping to change at line 375 | |||
odbLONG lDataLen, odbBOOL bFinal ); | odbLONG lDataLen, odbBOOL bFinal ); | |||
odbBOOL odbBindInputParam( odbHANDLE hQry, | odbBOOL odbBindInputParam( odbHANDLE hQry, | |||
odbUSHORT usParam, odbSHORT sDataType, | odbUSHORT usParam, odbSHORT sDataType, | |||
odbLONG lDataLen, odbBOOL bFinal ); | odbLONG lDataLen, odbBOOL bFinal ); | |||
odbBOOL odbBindOutputParam( odbHANDLE hQry, | odbBOOL odbBindOutputParam( odbHANDLE hQry, | |||
odbUSHORT usParam, odbSHORT sDataType, | odbUSHORT usParam, odbSHORT sDataType, | |||
odbLONG lDataLen, odbBOOL bFinal ); | odbLONG lDataLen, odbBOOL bFinal ); | |||
odbBOOL odbBindParam( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbBindParam( odbHANDLE hQry, odbUSHORT usParam, | |||
odbUSHORT usType, odbSHORT sDataType, | odbUSHORT usType, odbSHORT sDataType, | |||
odbLONG lDataLen, odbBOOL bFinal ); | odbLONG lDataLen, odbBOOL bFinal ); | |||
odbBOOL odbBindParamEx( odbHANDLE hQry, odbUSHORT usParam, | ||||
odbUSHORT usType, odbSHORT sDataType, | ||||
odbLONG lDataLen, odbSHORT sSqlType, | ||||
odbULONG ulColSize, odbSHORT sDecDigits, | ||||
odbBOOL bFinal ); | ||||
odbPCSTR odbColBaseName( odbHANDLE hQry, odbUSHORT usCol ); | ||||
odbPCSTR odbColBaseTable( odbHANDLE hQry, odbUSHORT usCol ); | ||||
odbPCSTR odbColCatalog( odbHANDLE hQry, odbUSHORT usCol ); | ||||
odbPVOID odbColData( odbHANDLE hQry, odbUSHORT usCol ); | odbPVOID odbColData( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbBYTE odbColDataByte( odbHANDLE hQry, odbUSHORT usCol ); | odbBYTE odbColDataByte( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbDOUBLE odbColDataDouble( odbHANDLE hQry, odbUSHORT usCol ); | odbDOUBLE odbColDataDouble( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbFLOAT odbColDataFloat( odbHANDLE hQry, odbUSHORT usCol ); | odbFLOAT odbColDataFloat( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbLONG odbColDataLen( odbHANDLE hQry, odbUSHORT usCol ); | odbLONG odbColDataLen( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbULONG odbColDataLong( odbHANDLE hQry, odbUSHORT usCol ); | odbULONG odbColDataLong( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbULONGLONG odbColDataLongLong( odbHANDLE hQry, odbUSHORT usCol ); | odbULONGLONG odbColDataLongLong( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbUSHORT odbColDataShort( odbHANDLE hQry, odbUSHORT usCol ); | odbUSHORT odbColDataShort( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbPSTR odbColDataText( odbHANDLE hQry, odbUSHORT usCol ); | odbPSTR odbColDataText( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbPTIMESTAMP odbColDataTimestamp( odbHANDLE hQry, odbUSHORT usCol ); | odbPTIMESTAMP odbColDataTimestamp( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbSHORT odbColDataType( odbHANDLE hQry, odbUSHORT usCol ); | odbSHORT odbColDataType( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbSHORT odbColDecDigits( odbHANDLE hQry, odbUSHORT usCol ); | ||||
odbSHORT odbColDefaultDataType( odbHANDLE hQry, odbUSHORT usCol ); | odbSHORT odbColDefaultDataType( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbULONG odbColFlags( odbHANDLE hQry, odbUSHORT usCol ); | ||||
odbPCSTR odbColName( odbHANDLE hQry, odbUSHORT usCol ); | odbPCSTR odbColName( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbUSHORT odbColNum( odbHANDLE hQry, odbPCSTR pszName ); | odbUSHORT odbColNum( odbHANDLE hQry, odbPCSTR pszName ); | |||
odbPCSTR odbColSchema( odbHANDLE hQry, odbUSHORT usCol ); | ||||
odbULONG odbColSize( odbHANDLE hQry, odbUSHORT usCol ); | odbULONG odbColSize( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbSHORT odbColSqlType( odbHANDLE hQry, odbUSHORT usCol ); | ||||
odbPCSTR odbColSqlTypeName( odbHANDLE hQry, odbUSHORT usCol ); | ||||
odbPCSTR odbColTable( odbHANDLE hQry, odbUSHORT usCol ); | ||||
odbPVOID odbColUserData( odbHANDLE hQry, odbUSHORT usCol ); | ||||
odbBOOL odbCommit( odbHANDLE hCon ); | odbBOOL odbCommit( odbHANDLE hCon ); | |||
odbBOOL odbConvertAll( odbHANDLE hCon, odbBOOL bConvert ); | ||||
odbBOOL odbConvertDatetime( odbHANDLE hCon, odbBOOL bConvert ); | ||||
void odbCTimeToTimestamp( odbPTIMESTAMP ptsTime, odbLONG lTime ); | void odbCTimeToTimestamp( odbPTIMESTAMP ptsTime, odbLONG lTime ); | |||
odbBOOL odbDescribeSqlType( odbHANDLE hCon, | ||||
odbPCSTR pszSqlTypeName, odbPSHORT psSqlT | ||||
ype, | ||||
odbPULONG pulColSize, odbPSHORT psDecDigi | ||||
ts ); | ||||
odbBOOL odbDetachQry( odbHANDLE hQry ); | ||||
odbBOOL odbDoRowOperation( odbHANDLE hQry, odbUSHORT usRowOp ); | odbBOOL odbDoRowOperation( odbHANDLE hQry, odbUSHORT usRowOp ); | |||
odbBOOL odbDropQry( odbHANDLE hQry ); | ||||
odbBOOL odbExecute( odbHANDLE hQry, odbPCSTR pszSQL ); | odbBOOL odbExecute( odbHANDLE hQry, odbPCSTR pszSQL ); | |||
odbBOOL odbFetchNextResult( odbHANDLE hQry ); | odbBOOL odbFetchNextResult( odbHANDLE hQry ); | |||
odbBOOL odbFetchRow( odbHANDLE hQry ); | odbBOOL odbFetchRow( odbHANDLE hQry ); | |||
odbBOOL odbFetchRowEx( odbHANDLE hQry, odbUSHORT usFetchType, | odbBOOL odbFetchRowEx( odbHANDLE hQry, odbUSHORT usFetchType, | |||
odbLONG lFetchParam ); | odbLONG lFetchParam ); | |||
odbBOOL odbFetchRowsIntoCache( odbHANDLE hQry ); | ||||
odbBOOL odbFinalizeRequest( odbHANDLE hOdb ); | ||||
void odbFree( odbHANDLE hOdb ); | void odbFree( odbHANDLE hOdb ); | |||
odbBOOL odbGetAttrLong( odbHANDLE hCon, odbLONG lAttr, | odbBOOL odbGetAttrLong( odbHANDLE hCon, odbLONG lAttr, | |||
odbPULONG pulVal ); | odbPULONG pulVal ); | |||
odbBOOL odbGetAttrText( odbHANDLE hCon, odbLONG lAttr, | odbBOOL odbGetAttrText( odbHANDLE hCon, odbLONG lAttr, | |||
odbPSTR pszVal, odbULONG ulValLen ); | odbPSTR pszVal, odbULONG ulValLen ); | |||
odbHANDLE odbGetConnection( odbHANDLE hQry ); | odbHANDLE odbGetConnection( odbHANDLE hQry ); | |||
odbPCSTR odbGetConnectionId( odbHANDLE hCon ); | odbPCSTR odbGetConnectionId( odbHANDLE hCon ); | |||
odbULONG odbGetError( odbHANDLE hOdb ); | odbULONG odbGetError( odbHANDLE hOdb ); | |||
odbPCSTR odbGetErrorText( odbHANDLE hOdb ); | odbPCSTR odbGetErrorText( odbHANDLE hOdb ); | |||
odbHANDLE odbGetFirstQuery( odbHANDLE hCon ); | odbHANDLE odbGetFirstQuery( odbHANDLE hCon ); | |||
odbHANDLE odbGetNextQuery( odbHANDLE hCon ); | odbHANDLE odbGetNextQuery( odbHANDLE hCon ); | |||
odbBOOL odbGetOutputParams( odbHANDLE hQry ); | odbBOOL odbGetOutputParams( odbHANDLE hQry ); | |||
odbBOOL odbGetParam( odbHANDLE hQry, odbUSHORT usParam, odbBOOL bFina l ); | odbBOOL odbGetParam( odbHANDLE hQry, odbUSHORT usParam, odbBOOL bFina l ); | |||
odbHANDLE odbGetQuery( odbHANDLE hCon, odbULONG ulQryId ); | odbHANDLE odbGetQuery( odbHANDLE hCon, odbULONG ulQryId ); | |||
odbULONG odbGetQueryId( odbHANDLE hQry ); | odbULONG odbGetQueryId( odbHANDLE hQry ); | |||
odbPVOID odbGetResponse( odbHANDLE hOdb ); | odbPVOID odbGetResponse( odbHANDLE hOdb ); | |||
odbULONG odbGetResponseCode( odbHANDLE hOdb ); | odbULONG odbGetResponseCode( odbHANDLE hOdb ); | |||
odbULONG odbGetResponseSize( odbHANDLE hOdb ); | odbULONG odbGetResponseSize( odbHANDLE hOdb ); | |||
odbULONG odbGetRowCacheSize( odbHANDLE hCon ); | ||||
odbLONG odbGetRowCount( odbHANDLE hQry ); | odbLONG odbGetRowCount( odbHANDLE hQry ); | |||
odbULONG odbGetRowStatus( odbHANDLE hQry ); | odbULONG odbGetRowStatus( odbHANDLE hQry ); | |||
odbUSHORT odbGetTotalCols( odbHANDLE hQry ); | odbUSHORT odbGetTotalCols( odbHANDLE hQry ); | |||
odbUSHORT odbGetTotalParams( odbHANDLE hQry ); | odbUSHORT odbGetTotalParams( odbHANDLE hQry ); | |||
odbLONG odbGetTotalRows( odbHANDLE hQry ); | ||||
odbPVOID odbGetUserData( odbHANDLE hOdb ); | odbPVOID odbGetUserData( odbHANDLE hOdb ); | |||
odbULONG odbGetUserDataLong( odbHANDLE hOdb ); | odbULONG odbGetUserDataLong( odbHANDLE hOdb ); | |||
odbBOOL odbGotParam( odbHANDLE hQry, odbUSHORT usParam ); | odbBOOL odbGotParam( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbBOOL odbIsConnected( odbHANDLE hOdb ); | odbBOOL odbIsConnected( odbHANDLE hOdb ); | |||
odbBOOL odbIsConnection( odbHANDLE hOdb ); | odbBOOL odbIsConnection( odbHANDLE hOdb ); | |||
odbBOOL odbLogin( odbHANDLE hCon, odbPSTR pszServer, odbUSHORT usPort | odbBOOL odbIsTextAttr( odbLONG lAttr ); | |||
, | odbBOOL odbIsUsingRowCache( odbHANDLE hCon ); | |||
odbUSHORT usType, odbPCSTR pszDbConnect ); | odbBOOL odbLoadDataTypes( odbHANDLE hCon ); | |||
odbBOOL odbLogin( odbHANDLE hCon, odbPCSTR pszServer, odbUSHORT usPor | ||||
t, | ||||
odbUSHORT usType, odbPCSTR pszDBConnect ); | ||||
odbBOOL odbLoginInterface( odbHANDLE hCon, odbPCSTR pszFile, | ||||
odbPCSTR pszInterface, odbPCSTR pszUsername | ||||
, | ||||
odbPCSTR pszPassword, odbPCSTR pszDatabase, | ||||
odbUSHORT usType ); | ||||
odbBOOL odbLogout( odbHANDLE hCon, odbBOOL bDisconnectDb ); | odbBOOL odbLogout( odbHANDLE hCon, odbBOOL bDisconnectDb ); | |||
odbPSTR odbLongLongToStr( odbLONGLONG llVal, odbPSTR pszStrEnd ); | odbPSTR odbLongLongToStr( odbLONGLONG llVal, odbPSTR pszStrEnd ); | |||
odbBOOL odbNoData( odbHANDLE hQry ); | odbBOOL odbNoData( odbHANDLE hQry ); | |||
odbPVOID odbParamData( odbHANDLE hQry, odbUSHORT usParam ); | odbPVOID odbParamData( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbBYTE odbParamDataByte( odbHANDLE hQry, odbUSHORT usParam ); | odbBYTE odbParamDataByte( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbDOUBLE odbParamDataDouble( odbHANDLE hQry, odbUSHORT usCol ); | odbDOUBLE odbParamDataDouble( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbFLOAT odbParamDataFloat( odbHANDLE hQry, odbUSHORT usCol ); | odbFLOAT odbParamDataFloat( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbLONG odbParamDataLen( odbHANDLE hQry, odbUSHORT usParam ); | odbLONG odbParamDataLen( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbULONG odbParamDataLong( odbHANDLE hQry, odbUSHORT usParam ); | odbULONG odbParamDataLong( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbULONGLONG odbParamDataLongLong( odbHANDLE hQry, odbUSHORT usParam ); | odbULONGLONG odbParamDataLongLong( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbUSHORT odbParamDataShort( odbHANDLE hQry, odbUSHORT usParam ); | odbUSHORT odbParamDataShort( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbPSTR odbParamDataText( odbHANDLE hQry, odbUSHORT usParam ); | odbPSTR odbParamDataText( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbPTIMESTAMP odbParamDataTimestamp( odbHANDLE hQry, odbUSHORT usCol ); | odbPTIMESTAMP odbParamDataTimestamp( odbHANDLE hQry, odbUSHORT usCol ); | |||
odbSHORT odbParamDataType( odbHANDLE hQry, odbUSHORT usParam ); | odbSHORT odbParamDataType( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbSHORT odbParamDecDigits( odbHANDLE hQry, odbUSHORT usParam ); | ||||
odbSHORT odbParamDefaultDataType( odbHANDLE hQry, odbUSHORT usParam ); | odbSHORT odbParamDefaultDataType( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbPCSTR odbParamName( odbHANDLE hQry, odbUSHORT usParam ); | ||||
odbUSHORT odbParamNum( odbHANDLE hQry, odbPCSTR pszName ); | ||||
odbULONG odbParamSize( odbHANDLE hQry, odbUSHORT usParam ); | ||||
odbSHORT odbParamSqlType( odbHANDLE hQry, odbUSHORT usParam ); | ||||
odbPCSTR odbParamSqlTypeName( odbHANDLE hQry, odbUSHORT usParam ); | ||||
odbUSHORT odbParamType( odbHANDLE hQry, odbUSHORT usParam ); | odbUSHORT odbParamType( odbHANDLE hQry, odbUSHORT usParam ); | |||
odbPVOID odbParamUserData( odbHANDLE hQry, odbUSHORT usParam ); | ||||
odbBOOL odbPrepare( odbHANDLE hQry, odbPCSTR pszSQL ); | odbBOOL odbPrepare( odbHANDLE hQry, odbPCSTR pszSQL ); | |||
odbBOOL odbPrepareProc( odbHANDLE hQry, odbPCSTR pszProcedure ); | ||||
odbBOOL odbRollback( odbHANDLE hCon ); | odbBOOL odbRollback( odbHANDLE hCon ); | |||
odbBOOL odbSeekRow( odbHANDLE hQry, odbLONG lRow ); | ||||
odbBOOL odbSetAttrLong( odbHANDLE hCon, odbLONG lAttr, | odbBOOL odbSetAttrLong( odbHANDLE hCon, odbLONG lAttr, | |||
odbULONG ulVal ); | odbULONG ulVal ); | |||
odbBOOL odbSetAttrText( odbHANDLE hCon, odbLONG lAttr, | odbBOOL odbSetAttrText( odbHANDLE hCon, odbLONG lAttr, | |||
odbPCSTR pszVal ); | odbPCSTR pszVal ); | |||
odbBOOL odbSetCol( odbHANDLE hQry, odbUSHORT usCol, | odbBOOL odbSetCol( odbHANDLE hQry, odbUSHORT usCol, | |||
odbPVOID pData, odbLONG lDataLen, | odbPVOID pData, odbLONG lDataLen, | |||
odbBOOL bFinal ); | odbBOOL bFinal ); | |||
odbBOOL odbSetColByte( odbHANDLE hQry, odbUSHORT usCol, | odbBOOL odbSetColByte( odbHANDLE hQry, odbUSHORT usCol, | |||
odbBYTE byData, odbBOOL bFinal ); | odbBYTE byData, odbBOOL bFinal ); | |||
odbBOOL odbSetColDouble( odbHANDLE hQry, odbUSHORT usCol, | odbBOOL odbSetColDouble( odbHANDLE hQry, odbUSHORT usCol, | |||
skipping to change at line 378 | skipping to change at line 514 | |||
odbBOOL odbSetColLongLong( odbHANDLE hQry, odbUSHORT usCol, | odbBOOL odbSetColLongLong( odbHANDLE hQry, odbUSHORT usCol, | |||
odbULONGLONG ullData, odbBOOL bFinal ); | odbULONGLONG ullData, odbBOOL bFinal ); | |||
odbBOOL odbSetColNull( odbHANDLE hQry, odbUSHORT usCol, | odbBOOL odbSetColNull( odbHANDLE hQry, odbUSHORT usCol, | |||
odbBOOL bFinal ); | odbBOOL bFinal ); | |||
odbBOOL odbSetColShort( odbHANDLE hQry, odbUSHORT usCol, | odbBOOL odbSetColShort( odbHANDLE hQry, odbUSHORT usCol, | |||
odbUSHORT usData, odbBOOL bFinal ); | odbUSHORT usData, odbBOOL bFinal ); | |||
odbBOOL odbSetColText( odbHANDLE hQry, odbUSHORT usCol, | odbBOOL odbSetColText( odbHANDLE hQry, odbUSHORT usCol, | |||
odbPCSTR pszData, odbBOOL bFinal ); | odbPCSTR pszData, odbBOOL bFinal ); | |||
odbBOOL odbSetColTimestamp( odbHANDLE hQry, odbUSHORT usCol, | odbBOOL odbSetColTimestamp( odbHANDLE hQry, odbUSHORT usCol, | |||
odbPTIMESTAMP ptsData, odbBOOL bFinal ); | odbPTIMESTAMP ptsData, odbBOOL bFinal ); | |||
odbBOOL odbSetColUserData( odbHANDLE hQry, odbUSHORT usCol, | ||||
odbPVOID pVal ); | ||||
odbULONG odbSetConnectTimeout( odbHANDLE hOdb, odbULONG ulTimeout ); | odbULONG odbSetConnectTimeout( odbHANDLE hOdb, odbULONG ulTimeout ); | |||
odbBOOL odbSetCursor( odbHANDLE hQry, odbUSHORT usType, | odbBOOL odbSetCursor( odbHANDLE hQry, odbUSHORT usType, | |||
odbUSHORT usConcurrency, | odbUSHORT usConcurrency, | |||
odbBOOL bEnableBookmarks ); | odbBOOL bEnableBookmarks ); | |||
odbBOOL odbSetError( odbHANDLE hOdb, odbULONG ulError ); | ||||
odbBOOL odbSetParam( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbSetParam( odbHANDLE hQry, odbUSHORT usParam, | |||
odbPVOID pData, odbLONG lDataLen, | odbPVOID pData, odbLONG lDataLen, | |||
odbBOOL bFinal ); | odbBOOL bFinal ); | |||
odbBOOL odbSetParamByte( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbSetParamByte( odbHANDLE hQry, odbUSHORT usParam, | |||
odbBYTE byData, odbBOOL bFinal ); | odbBYTE byData, odbBOOL bFinal ); | |||
odbBOOL odbSetParamDefault( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbSetParamDefault( odbHANDLE hQry, odbUSHORT usParam, | |||
odbBOOL bFinal ); | odbBOOL bFinal ); | |||
odbBOOL odbSetParamDouble( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbSetParamDouble( odbHANDLE hQry, odbUSHORT usParam, | |||
odbDOUBLE dData, odbBOOL bFinal ); | odbDOUBLE dData, odbBOOL bFinal ); | |||
odbBOOL odbSetParamFloat( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbSetParamFloat( odbHANDLE hQry, odbUSHORT usParam, | |||
skipping to change at line 405 | skipping to change at line 544 | |||
odbBOOL odbSetParamLongLong( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbSetParamLongLong( odbHANDLE hQry, odbUSHORT usParam, | |||
odbULONGLONG ullData, odbBOOL bFinal ); | odbULONGLONG ullData, odbBOOL bFinal ); | |||
odbBOOL odbSetParamNull( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbSetParamNull( odbHANDLE hQry, odbUSHORT usParam, | |||
odbBOOL bFinal ); | odbBOOL bFinal ); | |||
odbBOOL odbSetParamShort( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbSetParamShort( odbHANDLE hQry, odbUSHORT usParam, | |||
odbUSHORT usData, odbBOOL bFinal ); | odbUSHORT usData, odbBOOL bFinal ); | |||
odbBOOL odbSetParamText( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbSetParamText( odbHANDLE hQry, odbUSHORT usParam, | |||
odbPCSTR pszData, odbBOOL bFinal ); | odbPCSTR pszData, odbBOOL bFinal ); | |||
odbBOOL odbSetParamTimestamp( odbHANDLE hQry, odbUSHORT usParam, | odbBOOL odbSetParamTimestamp( odbHANDLE hQry, odbUSHORT usParam, | |||
odbPTIMESTAMP ptsData, odbBOOL bFinal ) ; | odbPTIMESTAMP ptsData, odbBOOL bFinal ) ; | |||
odbBOOL odbSetParamUserData( odbHANDLE hQry, odbUSHORT usParam, | ||||
odbPVOID pVal ); | ||||
odbULONG odbSetReadTimeout( odbHANDLE hOdb, odbULONG ulTimeout ); | odbULONG odbSetReadTimeout( odbHANDLE hOdb, odbULONG ulTimeout ); | |||
odbULONG odbSetSendTimeout( odbHANDLE hOdb, odbULONG ulTimeout ); | odbULONG odbSetSendTimeout( odbHANDLE hOdb, odbULONG ulTimeout ); | |||
void odbSetUserData( odbHANDLE hOdb, odbPVOID pVal ); | void odbSetUserData( odbHANDLE hOdb, odbPVOID pVal ); | |||
void odbSetUserDataLong( odbHANDLE hOdb, odbULONG ulVal ); | void odbSetUserDataLong( odbHANDLE hOdb, odbULONG ulVal ); | |||
odbLONGLONG odbStrToLongLong( odbPCSTR pszStr ); | odbLONGLONG odbStrToLongLong( odbPCSTR pszStr ); | |||
odbULONGLONG odbStrToULongLong( odbPCSTR pszStr ); | odbULONGLONG odbStrToULongLong( odbPCSTR pszStr ); | |||
odbLONG odbTimestampToCTime( odbPTIMESTAMP ptsTime ); | odbLONG odbTimestampToCTime( odbPTIMESTAMP ptsTime ); | |||
odbPSTR odbULongLongToStr( odbULONGLONG ullVal, odbPSTR pszStrEnd ); | odbPSTR odbULongLongToStr( odbULONGLONG ullVal, odbPSTR pszStrEnd ); | |||
odbBOOL odbUseRowCache( odbHANDLE hCon, odbBOOL bUse, odbULONG ulSize ); | ||||
void odbWinsockCleanup(); | void odbWinsockCleanup(); | |||
odbBOOL odbWinsockStartup(); | odbBOOL odbWinsockStartup(); | |||
#define odbFetchRowAbs( hQry, lRow ) odbFetchRowEx( (hQry), ODB_FETCH_ABS, (lRow) ) | #define odbFetchRowAbs( hQry, lRow ) odbFetchRowEx( (hQry), ODB_FETCH_ABS, (lRow) ) | |||
#define odbFetchRowBookmark( hQry, lRowOffset ) odbFetchRowEx( (hQry), ODB_ FETCH_BOOKMARK, (lRowOffset) ) | #define odbFetchRowBookmark( hQry, lRowOffset ) odbFetchRowEx( (hQry), ODB_ FETCH_BOOKMARK, (lRowOffset) ) | |||
#define odbFetchRowFirst( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_FIRST, 0 ) | #define odbFetchRowFirst( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_FIRST, 0 ) | |||
#define odbFetchRowLaxt( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_LAST, 0 ) | #define odbFetchRowLaxt( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_LAST, 0 ) | |||
#define odbFetchRowNext( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_NEXT, 0 ) | #define odbFetchRowNext( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_NEXT, 0 ) | |||
#define odbFetchRowPrev( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_PREV, 0 ) | #define odbFetchRowPrev( hQry ) odbFetchRowEx( (hQry), ODB_FETCH_PREV, 0 ) | |||
#define odbFetchRowRel( hQry, lRowOffset ) odbFetchRowEx( (hQry), ODB_FETCH _REL, (lRowOffset) ) | #define odbFetchRowRel( hQry, lRowOffset ) odbFetchRowEx( (hQry), ODB_FETCH _REL, (lRowOffset) ) | |||
End of changes. 30 change blocks. | ||||
48 lines changed or deleted | 193 lines changed or added | |||