diff options
author | Rasmus Lerdorf <rasmus@php.net> | 1999-10-28 20:33:43 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 1999-10-28 20:33:43 +0000 |
commit | 990d5d72ea77dd064e4849a5e6cba92739345aa3 (patch) | |
tree | 5c8e6da9794ef2e35db24a880f3c6447d76f62dc /ext/odbc/php_odbc.h | |
parent | 9704cd487338c93d44721b3b58ea9e630b00aea3 (diff) | |
download | php-git-990d5d72ea77dd064e4849a5e6cba92739345aa3.tar.gz |
(IBM DB2 Support) Fix stuff to allow IBM DB2 to work with PHP 4.
Tested against DB2 6.1 UDB on Linux (RH-6.0)
@- Enable IBM DB2 support - Tested against DB2 6.1 UDB on Linux (RH-6.0)
Diffstat (limited to 'ext/odbc/php_odbc.h')
-rw-r--r-- | ext/odbc/php_odbc.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/odbc/php_odbc.h b/ext/odbc/php_odbc.h index f82fb8ee28..f07a263373 100644 --- a/ext/odbc/php_odbc.h +++ b/ext/odbc/php_odbc.h @@ -118,9 +118,9 @@ PHP_FUNCTION(solid_fetch_prev); #define HAVE_SQL_EXTENDED_FETCH 1 #include <odbc.h> -#elif HAVE_DB2 /* DB2 CLI */ +#elif HAVE_IBMDB2 /* DB2 CLI */ -#define ODBC_TYPE "DB2 CLI" +#define ODBC_TYPE "IBM DB2 CLI" #define HAVE_SQL_EXTENDED_FETCH 1 #include <sqlcli1.h> #ifdef DB268K @@ -189,7 +189,7 @@ PHP_FUNCTION(odbc_statistics); PHP_FUNCTION(odbc_tableprivileges); typedef struct odbc_connection { -#if defined( HAVE_DB2 ) || defined( HAVE_UNIXODBC ) +#if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC ) SQLHANDLE henv; SQLHANDLE hdbc; #else @@ -208,7 +208,7 @@ typedef struct odbc_result_value { } odbc_result_value; typedef struct odbc_result { -#if defined( HAVE_DB2 ) || defined( HAVE_UNIXODBC ) +#if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC ) SQLHANDLE stmt; #else HSTMT stmt; @@ -249,7 +249,7 @@ odbc_connection *odbc_get_conn(HashTable *list, int count); void odbc_del_conn(HashTable *list, int ind); #define ODBC_SQL_ERROR odbc_sql_error -#if defined( HAVE_DB2 ) || defined( HAVE_UNIXODBC ) +#if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC ) void odbc_sql_error(SQLHANDLE henv, SQLHANDLE conn, SQLHANDLE stmt, char *func); #else void odbc_sql_error(HENV henv, HDBC conn, HSTMT stmt, char *func); |