[asterisk-bugs] [Asterisk 0015746]: res_config_mysql doesn't recognize commented record correctly

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Aug 20 10:29:39 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15746 
====================================================================== 
Reported By:                makoto
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15746
Category:                   Addons/res_config_mysql
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           Addons-1.6.1.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-08-19 22:13 CDT
Last Modified:              2009-08-20 10:29 CDT
====================================================================== 
Summary:                    res_config_mysql doesn't recognize commented record
correctly
Description: 
res_config_mysql recognizes records with commented = 0 as commented
records.
res_config_mysql executes the following SQL senetence. "commented=1" in
WHERE clause should be "commented=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

====================================================================== 

---------------------------------------------------------------------- 
 (0109342) svnbot (reporter) - 2009-08-20 10:29
 https://issues.asterisk.org/view.php?id=15746#c109342 
---------------------------------------------------------------------- 
Repository: asterisk-addons
Revision: 1018

U   branches/1.6.1/res/res_config_mysql.c

------------------------------------------------------------------------
r1018 | tilghman | 2009-08-20 10:29:38 -0500 (Thu, 20 Aug 2009) | 4 lines

Select uncommented lines, not commented ones.
(closes issue https://issues.asterisk.org/view.php?id=15746)
 Reported by: makoto

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk-addons?view=rev&revision=1018 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-20 10:29 svnbot         Note Added: 0109342                          
======================================================================




More information about the asterisk-bugs mailing list