[asterisk-bugs] [Asterisk 0019063]: [patch] Column names should be escaped

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 3 19:13:25 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19063 
====================================================================== 
Reported By:                festr
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   19063
Category:                   Addons/cdr_addon_mysql
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                       SWP-3306 
Regression:                 No 
Reviewboard Link:           311978 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 311978 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-04-04 09:45 CDT
Last Modified:              2011-05-03 19:13 CDT
====================================================================== 
Summary:                    [patch] Column names should be escaped
Description: 
Coulmns are not escaped so you get error inserting columns with names like
this: 'bla-bla' or 'trim' etc. Attaching patch to escape columns with ``. 
====================================================================== 

---------------------------------------------------------------------- 
 (0134383) svnbot (reporter) - 2011-05-03 19:13
 https://issues.asterisk.org/view.php?id=19063#c134383 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 316430

_U  trunk/
U   trunk/addons/cdr_mysql.c
U   trunk/addons/res_config_mysql.c

------------------------------------------------------------------------
r316430 | tilghman | 2011-05-03 19:13:24 -0500 (Tue, 03 May 2011) | 14
lines

Merged revisions 316429 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r316429 | tilghman | 2011-05-03 19:12:25 -0500 (Tue, 03 May 2011) | 7
lines
  
  Escape column names in case they contain illegal characters ('-') or
reserved words.
  
  (closes issue https://issues.asterisk.org/view.php?id=19063)
   Reported by: festr
   Patches: 
         patch uploaded by festr (license 443)
........

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

http://svn.digium.com/view/asterisk?view=rev&revision=316430 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-03 19:13 svnbot         Checkin                                      
2011-05-03 19:13 svnbot         Note Added: 0134383                          
======================================================================




More information about the asterisk-bugs mailing list