From 25917d58859ac54cbe067fe3e5c20de97e25357c Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Tue, 18 Jan 2005 07:17:01 +0000 Subject: Make this compile with the generic ntwdblib from Microsoft --- ext/pdo_dblib/php_pdo_dblib_int.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ext/pdo_dblib/php_pdo_dblib_int.h') 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 @@ -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; -- cgit v1.2.1