[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:30:06 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15746 
====================================================================== 
Reported By:                makoto
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   15746
Category:                   Addons/res_config_mysql
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-08-19 22:13 CDT
Last Modified:              2009-08-20 10:30 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

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

---------------------------------------------------------------------- 
 (0109343) svnbot (reporter) - 2009-08-20 10:30
 https://issues.asterisk.org/view.php?id=15746#c109343 
---------------------------------------------------------------------- 
Repository: asterisk-addons
Revision: 1019

U   branches/1.6.2/res/res_config_mysql.c

------------------------------------------------------------------------
r1019 | tilghman | 2009-08-20 10:30:06 -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=1019 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-20 10:30 svnbot         Checkin                                      
2009-08-20 10:30 svnbot         Note Added: 0109343                          
======================================================================




More information about the asterisk-bugs mailing list