#5641: Error with enum fields with values that contain ()'s
------------------------+---------------------------------------------------
    Reporter:  jdsmith  |         Owner:         
        Type:  Bug      |        Status:  new    
    Priority:  Medium   |     Milestone:  1.2.x.x
   Component:  General  |       Version:  RC3    
    Severity:  Normal   |    Resolution:         
    Keywords:           |   Php_version:  n/a    
Cake_version:           |  
------------------------+---------------------------------------------------
Comment (by jdsmith):

 Replying to [comment:2 mark_story]:
 > ENUM fields are not supported anywhere by Cake as far as I know. As it
 is vendor specific to MySQL.

 Sorry if I wasn't more clear, the problem is not really an ENUM problem,
 but a problem with the way the column function works in the dbo_mysql
 class.

 It really only is an issue with ENUM or SET datatypes as far as I can tell
 they would be the only situation where you could have more than one set of
 parenthesis in a field type.

 For example, if I was to have a room ENUM field with the following field
 values:

 {{{
 'Living Room','Kitchen','Pantry (Walk-in)','Dining Room'
 }}}

 And I executed the following code

 {{{
 echo $this->Model->_schema['room']['type'];
 }}}

 I would get the following result

 {{{
 'Living Room','Kitchen','Pantry'
 }}}

 Instead of the actual value. This is because of how the column method
 splits up the string exploding on the '(' character and the list function.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5641#comment:3>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to