Make WordPress Core

Opened 3 years ago

#46146 new defect (bug)

dbDelta not parsing enum correctly

Reported by: janjakes Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Database Keywords:
Focuses: Cc:


Given an enum definition such as:

enum('a', 'b')

The dbDelta function parses it as:


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.

Change History (0)

Note: See TracTickets for help on using tickets.