diff options
Diffstat (limited to 'ext/odbc/php_odbc.h')
-rw-r--r-- | ext/odbc/php_odbc.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/odbc/php_odbc.h b/ext/odbc/php_odbc.h index 6308b4ce95..199edc4974 100644 --- a/ext/odbc/php_odbc.h +++ b/ext/odbc/php_odbc.h @@ -269,14 +269,15 @@ 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); +int odbc_bindcols(odbc_result *result); -#define ODBC_SQL_ERROR odbc_sql_error #if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC ) -void odbc_sql_error(SQLHANDLE henv, SQLHANDLE conn, SQLHANDLE stmt, char *func); +#define ODBC_SQL_ERROR_PARAMS SQLHANDLE henv, SQLHANDLE conn, SQLHANDLE stmt, char *func #else -void odbc_sql_error(HENV henv, HDBC conn, HSTMT stmt, char *func); +#define ODBC_SQL_ERROR_PARAMS HENV henv, HDBC conn, HSTMT stmt, char *func #endif -int odbc_bindcols(odbc_result *result); + +void odbc_sql_error(ODBC_SQL_ERROR_PARAMS); #define IS_SQL_LONG(x) (x == SQL_LONGVARBINARY || x == SQL_LONGVARCHAR) #define IS_SQL_BINARY(x) (x == SQL_BINARY || x == SQL_VARBINARY || x == SQL_LONGVARBINARY) |