[wp-trac] [WordPress Trac] #46146: dbDelta not parsing enum correctly

WordPress Trac noreply at wordpress.org
Wed Jan 30 08:41:12 UTC 2019


#46146: dbDelta not parsing enum correctly
--------------------------+-----------------------------
 Reporter:  janjakes      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Given an enum definition such as:
 {{{
 enum('a', 'b')
 }}}

 The dbDelta function parses it as:
 {{{
 enum('a',
 }}}

 Which causes a change to be detected on every execution. I'm also afraid
 other cases with spaces (like strings with spaces in enum values, etc.)
 will cause similar problem since the regular expressions in the dbDelta
 function seem to cover only some particular cases.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46146>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list