diff options
Diffstat (limited to 'ext/odbc/php_odbc.h')
-rw-r--r-- | ext/odbc/php_odbc.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.h b/ext/odbc/php_odbc.h index 5aa7628396..f82fb8ee28 100644 --- a/ext/odbc/php_odbc.h +++ b/ext/odbc/php_odbc.h @@ -190,8 +190,10 @@ PHP_FUNCTION(odbc_tableprivileges); typedef struct odbc_connection { #if defined( HAVE_DB2 ) || defined( HAVE_UNIXODBC ) + SQLHANDLE henv; SQLHANDLE hdbc; #else + HENV henv; HDBC hdbc; #endif int open; @@ -245,10 +247,12 @@ void odbc_del_result(HashTable *list, int count); int odbc_add_conn(HashTable *list, HDBC conn); 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 ) -void odbc_sql_error(SQLHANDLE conn, SQLHANDLE stmt, char *func); +void odbc_sql_error(SQLHANDLE henv, SQLHANDLE conn, SQLHANDLE stmt, char *func); #else -void odbc_sql_error(HDBC conn, HSTMT stmt, char *func); +void odbc_sql_error(HENV henv, HDBC conn, HSTMT stmt, char *func); #endif int odbc_bindcols(odbc_result *result); |