[svn-commits] tilghman: branch 1.4 r88539 - /branches/1.4/res/res_odbc.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Nov 5 10:20:13 CST 2007


Author: tilghman
Date: Mon Nov  5 10:20:13 2007
New Revision: 88539

URL: http://svn.digium.com/view/asterisk?view=rev&rev=88539
Log:
Don't check used pooled connections for connection status, as it will cause issues for prepared queries.
Reported by: Nick Gorham (via -dev list)
Patch by: tilghman

Modified:
    branches/1.4/res/res_odbc.c

Modified: branches/1.4/res/res_odbc.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_odbc.c?view=diff&rev=88539&r1=88538&r2=88539
==============================================================================
--- branches/1.4/res/res_odbc.c (original)
+++ branches/1.4/res/res_odbc.c Mon Nov  5 10:20:13 2007
@@ -322,7 +322,7 @@
 				ast_cli(fd, "Pooled: yes\nLimit: %d\nConnections in use: %d\n", class->limit, class->count);
 
 				AST_LIST_TRAVERSE(&(class->odbc_obj), current, list) {
-					ast_cli(fd, "  Connection %d: %s\n", ++count, current->up && ast_odbc_sanity_check(current) ? "connected" : "disconnected");
+					ast_cli(fd, "  Connection %d: %s\n", ++count, current->used ? "in use" : current->up && ast_odbc_sanity_check(current) ? "connected" : "disconnected");
 				}
 			} else {
 				/* Should only ever be one of these */




More information about the svn-commits mailing list