aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-27 18:19:16 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-27 18:19:16 +0000
commite56f74c0de26f0bf6755762280c8967820a36ec4 (patch)
tree289ecfa35e086cbaa15667c25e485d701d693ccd /funcs
parentb5b239798d30a54cf0c444371c55da57ee1301ff (diff)
Should use the named handle, not one hardcoded
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30653 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_odbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index 887e26ba1..900e99aef 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -203,7 +203,7 @@ retry_write:
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;