[wp-trac] [WordPress Trac] #36924: dbDelta(): Support more than one whitespace between field name and its type definition

WordPress Trac noreply at wordpress.org
Tue May 24 01:15:49 UTC 2016


#36924: dbDelta(): Support more than one whitespace between field name and its type
definition
--------------------------+------------------------------
 Reporter:  matt_fw       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:  4.5.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by dd32):

 > In result some table definitions may lead to constant ALTER statements
 to be executed which may easily crash MySQL server.

 As a quick driveby note, `dbDelta()` shouldn't be called often, only when
 a plugin or core detects that one of it's tables potentially needs to be
 updated. Core handles this through it's `db_version` variable.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36924#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list