diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-08-20 15:29:53 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-08-20 15:29:53 +0000 |
commit | e25ca315891fd796368130804e432a157cad8896 (patch) | |
tree | 148766befd615e1ff2452fc921a5ba5ec8228822 /addons/res_config_mysql.c | |
parent | 8a2302e11848d54245934077427752d1c1d9ed7a (diff) |
Select uncommented lines, not commented ones.
(closes issue #15746)
Reported by: makoto
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@213248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/res_config_mysql.c')
-rw-r--r-- | addons/res_config_mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/res_config_mysql.c b/addons/res_config_mysql.c index dae856ea4..273114cbe 100644 --- a/addons/res_config_mysql.c +++ b/addons/res_config_mysql.c @@ -927,7 +927,7 @@ static struct ast_config *config_mysql(const char *database, const char *table, return NULL; } - ast_str_set(&sql, 0, "SELECT category, var_name, var_val, cat_metric FROM %s WHERE filename='%s' and commented=1 ORDER BY filename, cat_metric desc, var_metric asc, category, var_name, var_val, id", table, file); + ast_str_set(&sql, 0, "SELECT category, var_name, var_val, cat_metric FROM %s WHERE filename='%s' and commented=0 ORDER BY filename, cat_metric desc, var_metric asc, category, var_name, var_val, id", table, file); ast_debug(1, "MySQL RealTime: Static SQL: %s\n", ast_str_buffer(sql)); |