summaryrefslogtreecommitdiff
path: root/ext/odbc/php3_odbc.h
diff options
context:
space:
mode:
authorAndreas Karajannis <kara@php.net>1999-08-30 10:48:23 +0000
committerAndreas Karajannis <kara@php.net>1999-08-30 10:48:23 +0000
commit125da02aa766f273176319c09b999fd2f9fca108 (patch)
tree7003b4b6250dfadfce2b6e2156c2025c033b57aa /ext/odbc/php3_odbc.h
parent5600f889b2cb8d2b11b54d711273c40916c4b4fa (diff)
downloadphp-git-125da02aa766f273176319c09b999fd2f9fca108.tar.gz
Add support for unixODBC
Diffstat (limited to 'ext/odbc/php3_odbc.h')
-rw-r--r--ext/odbc/php3_odbc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/odbc/php3_odbc.h b/ext/odbc/php3_odbc.h
index 647f4de918..1a35df910e 100644
--- a/ext/odbc/php3_odbc.h
+++ b/ext/odbc/php3_odbc.h
@@ -77,6 +77,13 @@ PHP_FUNCTION(solid_fetch_prev);
#define SQL_LEN_DATA_AT_EXEC_OFFSET (-100)
#define SQL_LEN_DATA_AT_EXEC(length) (-(length)+SQL_LEN_DATA_AT_EXEC_OFFSET)
+#elif HAVE_UNIXODBC /* unixODBC library */
+
+#define ODBC_TYPE "unixODBC"
+#include <sql.h>
+#include <sqlext.h>
+#define HAVE_SQL_EXTENDED_FETCH 1
+
#elif HAVE_OPENLINK /* OpenLink ODBC drivers */
#define ODBC_TYPE "Openlink"