summaryrefslogtreecommitdiff
path: root/res/res_config_sqlite.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2011-10-13 00:17:42 +0000
committerTerry Wilson <twilson@digium.com>2011-10-13 00:17:42 +0000
commit9d83162d55db6abc114814e8ccf08653a0bea440 (patch)
treea11452d14791ff1bb666e8016a02f71ce487c8c9 /res/res_config_sqlite.c
parentee8844782c95a4f8c46c686aa010c2f72ea64317 (diff)
Don't skip the query field on a realtime multi query
There is no documented reason to not add the query field to the varlist returned by a realtime multi query, despite the config category being set to its value. Of course, there is no documentation that the category should be set to the value either. There is lots of no documentation when it comes to realtime. But, other engines do not skip this field so I am forcing this backend to follow the convention, because not doing so is very silly. ........ Merged revisions 340662 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 340663 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@340665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_config_sqlite.c')
-rw-r--r--res/res_config_sqlite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_config_sqlite.c b/res/res_config_sqlite.c
index fbeeac275..b5b8de4ed 100644
--- a/res/res_config_sqlite.c
+++ b/res/res_config_sqlite.c
@@ -1154,8 +1154,9 @@ static int add_rt_multi_cfg_entry(void *arg, int argc, char **argv, char **colum
ast_category_append(args->cfg, cat);
for (i = 0; i < argc; i++) {
- if (!argv[i] || !strcmp(args->initfield, columnNames[i]))
+ if (!argv[i]) {
continue;
+ }
if (!(var = ast_variable_new(columnNames[i], argv[i], ""))) {
ast_log(LOG_WARNING, "Unable to allocate variable\n");