[wp-trac] [WordPress Trac] #20263: Backticks in dbDelta cause warning and actually causes a query to alter all columns and indexes to run even if none have changed

WordPress Trac noreply at wordpress.org
Mon May 9 13:44:06 UTC 2016


#20263: Backticks in dbDelta cause warning and actually causes a query to alter all
columns and indexes to run even if none have changed
----------------------------------------------+----------------------------
 Reporter:  Driskell                          |       Owner:
     Type:  defect (bug)                      |      Status:  new
 Priority:  normal                            |   Milestone:  Future
Component:  Database                          |  Release
 Severity:  minor                             |     Version:  1.5
 Keywords:  has-patch early needs-unit-tests  |  Resolution:
                                              |     Focuses:
----------------------------------------------+----------------------------

Comment (by ocean90):

 [attachment:20263.2.diff] adds a simple unit test but it probably needs a
 few more.

 @davidmosterd: I noticed that the `strtolower()` for `$tablefield->Field`
 got removed in [attachment:20263.diff]. Not sure if that was intended or
 not.

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


More information about the wp-trac mailing list