[svn-commits] tilghman: branch 1.6.2 r1019 - /branches/1.6.2/res/res_config_mysql.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Aug 20 10:29:38 CDT 2009


Author: tilghman
Date: Thu Aug 20 10:29:34 2009
New Revision: 1019

URL: http://svn.asterisk.org/svn-view/asterisk-addons?view=rev&rev=1019
Log:
Select uncommented lines, not commented ones.
(closes issue #15746)
 Reported by: makoto

Modified:
    branches/1.6.2/res/res_config_mysql.c

Modified: branches/1.6.2/res/res_config_mysql.c
URL: http://svn.asterisk.org/svn-view/asterisk-addons/branches/1.6.2/res/res_config_mysql.c?view=diff&rev=1019&r1=1018&r2=1019
==============================================================================
--- branches/1.6.2/res/res_config_mysql.c (original)
+++ branches/1.6.2/res/res_config_mysql.c Thu Aug 20 10:29:34 2009
@@ -943,7 +943,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", ast_str_buffer(sql));
 




More information about the svn-commits mailing list