summaryrefslogtreecommitdiff
path: root/res/res_config_odbc.c
diff options
context:
space:
mode:
authorMichael L. Young <elgueromexicano@gmail.com>2013-05-10 20:28:18 +0000
committerMichael L. Young <elgueromexicano@gmail.com>2013-05-10 20:28:18 +0000
commit8f05ed46feef44c005dc65f5abeb434813a04399 (patch)
tree6972a4eff47e57e31493ec4a2620b49f2c6c88a3 /res/res_config_odbc.c
parent4666079b05ea3b189e4fdccc665f7a61bf3e5535 (diff)
Fix Finding Extensions With Patterns Using ODBC Realtime
After the merge of support for the realtime sorcery module, extensions that contained a pattern were not being found through odbc realtime. It was tracked down to this one line that was advancing to the next variable list before it should have been. The removal of this one line fixes this. Tested this fix on my machine. Received confirmation that this is the right fix from file on IRC. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_config_odbc.c')
-rw-r--r--res/res_config_odbc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c
index 524912a9e..2735eea6d 100644
--- a/res/res_config_odbc.c
+++ b/res/res_config_odbc.c
@@ -340,7 +340,6 @@ static struct ast_config *realtime_multi_odbc(const char *database, const char *
*op = '\0';
}
- field = field->next;
op = !strchr(field->name, ' ') ? " =" : "";
snprintf(sql, sizeof(sql), "SELECT * FROM %s WHERE %s%s ?%s", table, field->name, op,
strcasestr(field->name, "LIKE") && !ast_odbc_backslash_is_escape(obj) ? " ESCAPE '\\'" : "");