mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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
This commit is contained in:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user