From: Tilghman Lesher Date: Sat, 27 May 2006 18:19:16 +0000 (+0000) Subject: Should use the named handle, not one hardcoded X-Git-Tag: 1.4.0-beta1~1170 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b68fa7a8f2ebd41025d992ed2a0ae4118005d605;p=thirdparty%2Fasterisk.git Should use the named handle, not one hardcoded git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30653 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index 887e26ba14..900e99aef4 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;