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.c | |
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.c')
-rw-r--r-- | ext/odbc/php_odbc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 1a09702d99..64ed24d343 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -62,7 +62,7 @@ static int le_result, le_conn, le_pconn; #define SAFE_SQL_NTS(n) ((SQLSMALLINT) ((n)?(SQL_NTS):0)) /* - * #if defined( HAVE_DB2 ) || defined( HAVE_UNIXODBC ) + * #if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC ) SQLHANDLE henv; #else HENV henv; @@ -152,7 +152,7 @@ static void _free_odbc_result(odbc_result *res) (UWORD)SQL_COMMIT); #endif SQLFreeStmt(res->stmt,SQL_DROP); -#if !defined( HAVE_DB2 ) && !defined( HAVE_UNIXODBC ) +#if !defined( HAVE_IBMDB2 ) && !defined( HAVE_UNIXODBC ) res->stmt = NULL; #endif } @@ -445,7 +445,7 @@ PHP_MINFO_FUNCTION(odbc) php_printf("</table>\n"); } -#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) |