[svn-commits] tilghman: branch 1.6.1 r1018 - /branches/1.6.1/res/res_config_mysql.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Aug 20 10:29:10 CDT 2009
Author: tilghman
Date: Thu Aug 20 10:29:06 2009
New Revision: 1018
URL: http://svn.asterisk.org/svn-view/asterisk-addons?view=rev&rev=1018
Log:
Select uncommented lines, not commented ones.
(closes issue #15746)
Reported by: makoto
Modified:
branches/1.6.1/res/res_config_mysql.c
Modified: branches/1.6.1/res/res_config_mysql.c
URL: http://svn.asterisk.org/svn-view/asterisk-addons/branches/1.6.1/res/res_config_mysql.c?view=diff&rev=1018&r1=1017&r2=1018
==============================================================================
--- branches/1.6.1/res/res_config_mysql.c (original)
+++ branches/1.6.1/res/res_config_mysql.c Thu Aug 20 10:29:06 2009
@@ -828,7 +828,7 @@
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", sql->str);
More information about the svn-commits
mailing list