summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.h
diff options
context:
space:
mode:
authorAndreas Karajannis <kara@php.net>2000-10-17 15:23:18 +0000
committerAndreas Karajannis <kara@php.net>2000-10-17 15:23:18 +0000
commite8861e6d20ca6cfa8631c9a10bcad6fcb8d447e4 (patch)
tree991837c87f84248a90d0428d791e30a101035aa2 /ext/odbc/php_odbc.h
parentd95bc9b3eb4545954d776904400afe5dd60d5a67 (diff)
downloadphp-git-e8861e6d20ca6cfa8631c9a10bcad6fcb8d447e4.tar.gz
Added support for SAP DB
Diffstat (limited to 'ext/odbc/php_odbc.h')
-rw-r--r--ext/odbc/php_odbc.h15
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