aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-26 06:43:16 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-26 06:43:16 +0000
commit48f20af14d96bd25a75ff3aa345626507a85d60d (patch)
treeb97f378dfd05b49e4f74d1fcc3475aea6126fc4f /funcs
parent6d87cf528a058ca88baa2012397e1a7983884207 (diff)
Use the readhandle for reads (closes issue #12069)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104125 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_odbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index af4bab069..fe7e9896d 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -307,8 +307,8 @@ static int acf_odbc_read(struct ast_channel *chan, const char *cmd, char *s, cha
AST_LIST_UNLOCK(&queries);
for (dsn = 0; dsn < 5; dsn++) {
- if (!ast_strlen_zero(query->writehandle[dsn])) {
- obj = ast_odbc_request_obj(query->writehandle[dsn], 0);
+ if (!ast_strlen_zero(query->readhandle[dsn])) {
+ obj = ast_odbc_request_obj(query->readhandle[dsn], 0);
if (obj)
stmt = ast_odbc_direct_execute(obj, generic_execute, sql);
}