[asterisk-commits] tilghman: branch tilghman/realtime_failover r141424 - /team/tilghman/realtime...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 5 16:57:52 CDT 2008


Author: tilghman
Date: Fri Sep  5 16:57:52 2008
New Revision: 141424

URL: http://svn.digium.com/view/asterisk?view=rev&rev=141424
Log:
Ensure realtime ODBC only uses the connected handles

Modified:
    team/tilghman/realtime_failover/res/res_config_odbc.c

Modified: team/tilghman/realtime_failover/res/res_config_odbc.c
URL: http://svn.digium.com/view/asterisk/team/tilghman/realtime_failover/res/res_config_odbc.c?view=diff&rev=141424&r1=141423&r2=141424
==============================================================================
--- team/tilghman/realtime_failover/res/res_config_odbc.c (original)
+++ team/tilghman/realtime_failover/res/res_config_odbc.c Fri Sep  5 16:57:52 2008
@@ -134,7 +134,7 @@
 	if (!table)
 		return NULL;
 
-	obj = ast_odbc_request_obj(database, 0);
+	obj = ast_odbc_request_obj(database, ODBC_CONNECTED);
 
 	if (!obj) {
 		ast_log(LOG_ERROR, "No database handle available with the name of '%s' (check res_odbc.conf)\n", database);
@@ -282,7 +282,7 @@
 	if (!table)
 		return NULL;
 
-	obj = ast_odbc_request_obj(database, 0);
+	obj = ast_odbc_request_obj(database, CONNECTED);
 	if (!obj)
 		return NULL;
 
@@ -418,7 +418,7 @@
 		return -1;
 	}
 
-	obj = ast_odbc_request_obj(database, 0);
+	obj = ast_odbc_request_obj(database, ODBC_CONNECTED);
 	if (!obj) {
 		ast_odbc_release_table(tableptr);
 		return -1;
@@ -504,7 +504,7 @@
 	if (!table)
 		return -1;
 
-	obj = ast_odbc_request_obj(database, 0);
+	obj = ast_odbc_request_obj(database, ODBC_CONNECTED);
 	if (!obj)
 		return -1;
 
@@ -578,7 +578,7 @@
 	if (!table)
 		return -1;
 
-	obj = ast_odbc_request_obj(database, 0);
+	obj = ast_odbc_request_obj(database, ODBC_CONNECTED);
 	if (!obj)
 		return -1;
 
@@ -670,7 +670,7 @@
 	if (!file || !strcmp (file, "res_config_odbc.conf"))
 		return NULL;		/* cant configure myself with myself ! */
 
-	obj = ast_odbc_request_obj(database, 0);
+	obj = ast_odbc_request_obj(database, ODBC_CONNECTED);
 	if (!obj)
 		return NULL;
 




More information about the asterisk-commits mailing list