[asterisk-commits] tilghman: trunk r104125 - /trunk/funcs/func_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 26 00:43:19 CST 2008


Author: tilghman
Date: Tue Feb 26 00:43:16 2008
New Revision: 104125

URL: http://svn.digium.com/view/asterisk?view=rev&rev=104125
Log:
Use the readhandle for reads (closes issue #12069)

Modified:
    trunk/funcs/func_odbc.c

Modified: trunk/funcs/func_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_odbc.c?view=diff&rev=104125&r1=104124&r2=104125
==============================================================================
--- trunk/funcs/func_odbc.c (original)
+++ trunk/funcs/func_odbc.c Tue Feb 26 00:43:16 2008
@@ -307,8 +307,8 @@
 	AST_LIST_UNLOCK(&queries);
 
 	for (dsn = 0; dsn < 5; dsn++) {
-		if (!ast_strlen_zero(query->writehandle[dsn])) {
-			obj = ast_odbc_request_obj(query->writehandle[dsn], 0);
+		if (!ast_strlen_zero(query->readhandle[dsn])) {
+			obj = ast_odbc_request_obj(query->readhandle[dsn], 0);
 			if (obj)
 				stmt = ast_odbc_direct_execute(obj, generic_execute, sql);
 		}




More information about the asterisk-commits mailing list