[asterisk-commits] tilghman: trunk r213248 - /trunk/addons/res_config_mysql.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 20 10:29:57 CDT 2009


Author: tilghman
Date: Thu Aug 20 10:29:53 2009
New Revision: 213248

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

Modified:
    trunk/addons/res_config_mysql.c

Modified: trunk/addons/res_config_mysql.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/addons/res_config_mysql.c?view=diff&rev=213248&r1=213247&r2=213248
==============================================================================
--- trunk/addons/res_config_mysql.c (original)
+++ trunk/addons/res_config_mysql.c Thu Aug 20 10:29:53 2009
@@ -927,7 +927,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 asterisk-commits mailing list