[Home]

Summary:ASTERISK-07702: [patch] Add MySQL safe flag to the CDR() function
Reporter:Bill Nesbitt (bn999)Labels:
Date Opened:2006-09-09 08:59:56Date Closed:2006-09-09 16:28:48
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Functions/func_cdr
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) func_cdr.c.patch
Description:I found it useful to be able to be able to make a CDR() variable safe for use with MySQL.  This additional functionality simply prepends a backslash (\) character before any backslash or single quote (') character.  The resultant string should be safe to use in a MySQL statement.

****** ADDITIONAL INFORMATION ******

The option character used is 'm'. Usage example:

CDR(clid|m)
Comments:By: Tilghman Lesher (tilghman) 2006-09-09 16:28:48

This is properly handled in the database driver itself and should not be in the general API.