[wp-trac] [WordPress Trac] #21800: Include error reporting on failed DB INSERT in term_relationships

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 5 11:47:37 UTC 2012


#21800: Include error reporting on failed DB INSERT in term_relationships
-----------------------------------+------------------------------
 Reporter:  jndetlefsen            |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Taxonomy               |     Version:  2.5
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+------------------------------
Changes (by scribu):

 * keywords:  has-patch => has-patch 2nd-opinion


Comment:

 Actually, WP doesn't check anywhere if INSERT AND UPDATE queries fail.

 This has all sorts of interesting side-effects:

 You can make the database read-only and WP will function normally, except
 for not saving any of your changes.

 Then, if you add a persistent object cache on top, the changes will be
 saved in the cache but not in the database. And you'll scratch your head
 trying to figure out why your DB doesn't seem to be read-only anymore. :)

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


More information about the wp-trac mailing list