Skip to Content.
Sympa Menu

freetds - [PATCH] msg_number to TDS_UINT

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Dave Brotherstone" <davegb AT pobox.com>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: [PATCH] msg_number to TDS_UINT
  • Date: Sat, 26 Jan 2002 10:10:42 -0000

As discussed, a diff (I hope it's the right format - shout if it's not) of
the couple of changes to make the msg_number a TDS_UINT under dblib.

Tested with SQL2000 and PHP/Apache.

Dave.
Index: include/tds.h.in
===================================================================
RCS file: /cvsroot/freetds/freetds/include/tds.h.in,v
retrieving revision 1.9
diff -u -r1.9 tds.h.in
--- include/tds.h.in 2001/12/03 00:06:14 1.9
+++ include/tds.h.in 2002/01/26 09:58:01
@@ -476,7 +476,7 @@
typedef struct tds_msg_info {
TDS_SMALLINT priv_msg_type;
TDS_SMALLINT line_number;
- TDS_SMALLINT msg_number;
+ TDS_UINT msg_number;
TDS_SMALLINT msg_state;
TDS_SMALLINT msg_level;
TDS_CHAR *server;
Index: src/dblib/dbutil.c
===================================================================
RCS file: /cvsroot/freetds/freetds/src/dblib/dbutil.c,v
retrieving revision 1.5
diff -u -r1.5 dbutil.c
--- src/dblib/dbutil.c 2001/11/14 04:52:33 1.5
+++ src/dblib/dbutil.c 2002/01/26 09:58:01
@@ -29,7 +29,7 @@


extern int
(*g_dblib_msg_handler)(DBPROCESS*,TDS_SMALLINT,TDS_SMALLINT,TDS_SMALLINT,TDS_CHAR*,TDS_CHAR*,TDS_CHAR*);
-extern int
(*g_dblib_err_handler)(DBPROCESS*,TDS_SMALLINT,TDS_SMALLINT,TDS_SMALLINT,TDS_CHAR*,TDS_CHAR*);
+extern int
(*g_dblib_err_handler)(DBPROCESS*,TDS_SMALLINT,TDS_UINT,TDS_SMALLINT,TDS_CHAR*,TDS_CHAR*);

/* The next 2 functions will be the reciever for the info and error messages
* that come from the TDS layer. The address of this function is passed to



Archive powered by MHonArc 2.6.24.

Top of Page