[ freetds-Patches-575613 ] Do not use global msg/err handlers
noreply at sourceforge.net
noreply at sourceforge.net
Sun Jun 30 02:46:50 EDT 2002
Patches item #575613, was opened at 2002-06-30 10:46
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=575613&group_id=33106
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Frediano Ziglio (freddy77)
Assigned to: Nobody/Anonymous (nobody)
Summary: Do not use global msg/err handlers
Initial Comment:
Why?
Is some environment (think as apache with perl/db,
php/odbc and php/sybase) g_tds_err_handler and
g_tds_msg_handler (global pointer to function to catch
messages and errors from tds) can be shared between
some library (odbc, ctlib, dblib) causing some problem
(error sended to wrong library). This can depend also
by the system and how shared oject is loaded.
How?
I removed global variable and add member to TDSLOGIN
(to catch also login problems) and TDSSOCKET and change
all dependency.
freddy77
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=575613&group_id=33106
More information about the FreeTDS
mailing list