From 0cc273612b8a1c4f95a7c67a2ea937d80e6c59d6 Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 5 Nov 2007 16:20:13 +0000 Subject: 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 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@88539 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_odbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/res_odbc.c') diff --git a/res/res_odbc.c b/res/res_odbc.c index a88fa5b38..53df46164 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -322,7 +322,7 @@ static int odbc_show_command(int fd, int argc, char **argv) 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 */ -- cgit v1.2.3