[asterisk-bugs] [Asterisk 0015170]: [patch] MySQL ENUM Type Not Detected

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 6 17:29:33 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15170 
====================================================================== 
Reported By:                leobrown
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   15170
Category:                   Addons/cdr_addon_mysql
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-21 07:45 CDT
Last Modified:              2010-10-06 17:29 CDT
====================================================================== 
Summary:                    [patch] MySQL ENUM Type Not Detected
Description: 
The raw values for the AMAFLAGS column are detected by a switch case that
checks all numeric types. Unfortunately ENUM is not in the list. ENUM is
technically a numeric type. So if you have the column definition:

  amaflags ENUM('DOCUMENTATION','BILLING','OMIT')

This will work. However, if you have the definition:

  amaflags ENUM('info','outbound','inbound')

This will *not* work and the column will be set to NULL due to an
unparsable value. By adding the ENUM column type instead, both syntaxes
will work!

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

---------------------------------------------------------------------- 
 (0127770) leobrown (reporter) - 2010-10-06 17:29
 https://issues.asterisk.org/view.php?id=15170#c127770 
---------------------------------------------------------------------- 
Tilghman

If you close this again, of course I'll leave it dormant, but I felt I
must correct your "happy accident" theory!

Thanks
Leo 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-06 17:29 leobrown       Note Added: 0127770                          
======================================================================




More information about the asterisk-bugs mailing list