diff options
Diffstat (limited to 'ext/odbc/php_odbc.h')
-rw-r--r-- | ext/odbc/php_odbc.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ext/odbc/php_odbc.h b/ext/odbc/php_odbc.h index f67e9a12e7..3b903f834b 100644 --- a/ext/odbc/php_odbc.h +++ b/ext/odbc/php_odbc.h @@ -75,6 +75,15 @@ PHP_FUNCTION(solid_fetch_prev); #define HAVE_SQL_EXTENDED_FETCH 1 #define SQL_SUCCEEDED(rc) (((rc)&(~1))==0) +#elif defined(HAVE_SAPDB) /* SAP DB */ + +#define ODBC_TYPE "SAP DB" +#include <WINDOWS.H> +#include <sql.h> +#include <sqlext.h> +#define HAVE_SQL_EXTENDED_FETCH 1 +#define SQL_SUCCEEDED(rc) (((rc)&(~1))==0) + #elif defined(HAVE_IODBC) /* iODBC library */ #define ODBC_TYPE "iODBC" @@ -219,7 +228,7 @@ typedef struct odbc_connection { #if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC ) SQLHANDLE henv; SQLHANDLE hdbc; -#elif defined( HAVE_SOLID_35 ) +#elif defined( HAVE_SOLID_35 ) || defined( HAVE_SAPDB ) SQLHENV henv; SQLHDBC hdbc; #else @@ -240,7 +249,7 @@ typedef struct odbc_result_value { typedef struct odbc_result { #if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC ) SQLHANDLE stmt; -#elif defined( HAVE_SOLID_35 ) +#elif defined( HAVE_SOLID_35 ) || defined( HAVE_SAPDB ) SQLHSTMT stmt; #else HSTMT stmt; @@ -285,7 +294,7 @@ int odbc_bindcols(odbc_result *result); #if defined( HAVE_IBMDB2 ) || defined( HAVE_UNIXODBC ) #define ODBC_SQL_ERROR_PARAMS SQLHANDLE henv, SQLHANDLE conn, SQLHANDLE stmt, char *func -#elif defined( HAVE_SOLID_35 ) +#elif defined( HAVE_SOLID_35 ) || defined( HAVE_SAPDB ) #define ODBC_SQL_ERROR_PARAMS SQLHENV henv, SQLHDBC conn, SQLHSTMT stmt, char *func #else #define ODBC_SQL_ERROR_PARAMS HENV henv, HDBC conn, HSTMT stmt, char *func |