summaryrefslogtreecommitdiff
path: root/ext/pdo_dblib/php_pdo_dblib_int.h
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2005-01-18 07:17:01 +0000
committerFrank M. Kromann <fmk@php.net>2005-01-18 07:17:01 +0000
commit25917d58859ac54cbe067fe3e5c20de97e25357c (patch)
tree88f9647dc9fbada591e17224715da7fceb2bc96a /ext/pdo_dblib/php_pdo_dblib_int.h
parent14821bb8cf46e3d21bdfb47163655370720213a6 (diff)
downloadphp-git-25917d58859ac54cbe067fe3e5c20de97e25357c.tar.gz
Make this compile with the generic ntwdblib from Microsoft
Diffstat (limited to 'ext/pdo_dblib/php_pdo_dblib_int.h')
-rw-r--r--ext/pdo_dblib/php_pdo_dblib_int.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/ext/pdo_dblib/php_pdo_dblib_int.h b/ext/pdo_dblib/php_pdo_dblib_int.h
index 64e86b1fbe..f9b729962c 100644
--- a/ext/pdo_dblib/php_pdo_dblib_int.h
+++ b/ext/pdo_dblib/php_pdo_dblib_int.h
@@ -30,7 +30,12 @@
# define DBMSGHANDLE(a, b) dbprocmsghandle(a, b)
# define EHANDLEFUNC DBERRHANDLE_PROC
# define MHANDLEFUNC DBMSGHANDLE_PROC
-# define DBSETOPT(a, b, b) dbsetopt(a, b, c)
+# define DBSETOPT(a, b, c) dbsetopt(a, b, c)
+# define SYBESMSG SQLESMSG
+# define SYBESEOF SQLESEOF
+# define SYBEFCON SQLECONN // SQLEFCON does not exist in MS SQL Server.
+# define SYBEMEM SQLEMEM
+# define SYBEPWD SQLEPWD
#else
# include <sybfront.h>
@@ -78,6 +83,12 @@ typedef unsigned char *LPBYTE;
typedef float DBFLT4;
#endif
+int error_handler(DBPROCESS *dbproc, int severity, int dberr,
+ int oserr, char *dberrstr, char *oserrstr);
+
+int msg_handler(DBPROCESS *dbproc, DBINT msgno, int msgstate,
+ int severity, char *msgtext, char *srvname, char *procname, DBUSMALLINT line);
+
extern pdo_driver_t pdo_dblib_driver;
extern struct pdo_stmt_methods dblib_stmt_methods;