[asterisk-commits] trunk r30653 - /trunk/funcs/func_odbc.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat May 27 11:19:17 MST 2006


Author: tilghman
Date: Sat May 27 13:19:16 2006
New Revision: 30653

URL: http://svn.digium.com/view/asterisk?rev=30653&view=rev
Log:
Should use the named handle, not one hardcoded

Modified:
    trunk/funcs/func_odbc.c

Modified: trunk/funcs/func_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_odbc.c?rev=30653&r1=30652&r2=30653&view=diff
==============================================================================
--- trunk/funcs/func_odbc.c (original)
+++ trunk/funcs/func_odbc.c Sat May 27 13:19:16 2006
@@ -203,7 +203,7 @@
 		SQLFreeHandle(SQL_HANDLE_STMT, stmt);
 		odbc_release_obj(obj);
 		/* All handles are now invalid (after a disconnect), so we gotta redo all handles */
-		obj = odbc_request_obj("asterisk", 1);
+		obj = odbc_request_obj(query->dsn, 1);
 		if (!retry) {
 			retry = 1;
 			goto retry_write;



More information about the asterisk-commits mailing list