From f4357f32545728e9ef0ce0e3cc27292a38a562e5 Mon Sep 17 00:00:00 2001 From: Andreas Karajannis Date: Thu, 11 May 2000 11:46:06 +0000 Subject: Forcing passing by reference for array in odbc_fetch_into() Added function odbc_column_scale(), new alias odbc_column_precision for odbc_column_len Added better description in Prototypes for some functions --- ext/odbc/php_odbc.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ext/odbc/php_odbc.h') diff --git a/ext/odbc/php_odbc.h b/ext/odbc/php_odbc.h index 9aad6a6de3..6308b4ce95 100644 --- a/ext/odbc/php_odbc.h +++ b/ext/odbc/php_odbc.h @@ -34,7 +34,7 @@ #define _PHP_ODBC_H #if HAVE_UODBC - +#define ODBCVER 0x0250 /*#ifndef MSVC5 #define FAR #endif @@ -54,7 +54,9 @@ PHP_FUNCTION(solid_fetch_prev); #define SQLSMALLINT SWORD #define SQLUSMALLINT UWORD +#ifndef SQL_SUCCEEDED #define SQL_SUCCEEDED(rc) (((rc)&(~1))==0) +#endif #elif defined(HAVE_EMPRESS) /* Empress */ @@ -84,7 +86,9 @@ PHP_FUNCTION(solid_fetch_prev); #define SQL_SO_DYNAMIC 0x00000004L #define SQL_LEN_DATA_AT_EXEC_OFFSET (-100) #define SQL_LEN_DATA_AT_EXEC(length) (-(length)+SQL_LEN_DATA_AT_EXEC_OFFSET) +#ifndef SQL_SUCCEEDED #define SQL_SUCCEEDED(rc) (((rc)&(~1))==0) +#endif #elif defined(HAVE_UNIXODBC) /* unixODBC library */ @@ -175,6 +179,7 @@ PHP_FUNCTION(odbc_execute); PHP_FUNCTION(odbc_fetch_into); PHP_FUNCTION(odbc_fetch_row); PHP_FUNCTION(odbc_field_len); +PHP_FUNCTION(odbc_field_scale); PHP_FUNCTION(odbc_field_name); PHP_FUNCTION(odbc_field_type); PHP_FUNCTION(odbc_field_num); @@ -187,10 +192,6 @@ PHP_FUNCTION(odbc_result_all); PHP_FUNCTION(odbc_rollback); PHP_FUNCTION(odbc_binmode); PHP_FUNCTION(odbc_longreadlen); -/* - * PHP_FUNCTION(odbc_bind_param); - * PHP_FUNCTION(odbc_define); -*/ PHP_FUNCTION(odbc_tables); PHP_FUNCTION(odbc_columns); #if !defined(HAVE_DBMAKER) && !defined(HAVE_SOLID) /* not supported now */ -- cgit v1.2.1