[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 wp-trac at lists.automattic.com
Thu May 24 16:04:18 UTC 2012


#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:  Awaiting Review
Component:  Upgrade/Install  |     Version:  1.5
 Severity:  minor            |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------------------

Comment (by kurtpayne):

 Adding {{{`}}} to the trim list won't fix it because a backtick can occur
 in the middle of the string:

 {{{
 `user_ip` int(11) DEFAULT 0,
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20263#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list