[wp-trac] [WordPress Trac] #32315: $wpdb->insert fails without error msg

WordPress Trac noreply at wordpress.org
Fri Nov 4 03:50:45 UTC 2016


#32315: $wpdb->insert fails without error msg
------------------------------------------+------------------------------
 Reporter:  dlt101                        |       Owner:
     Type:  defect (bug)                  |      Status:  reopened
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Database                      |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------

Comment (by datainterlock):

 If you're dead set on making this error, tell me. What's the purpose of
 having insert and update when wp-query WILL truncate and insert? Why would
 i even waste my time coding a wp-insert when a wp-query wouldnt fail with
 the same exact query? In order to keep wp-insert from erroring, the vars
 will have to be checked for size prior to inserting. A huge waste and will
 still get truncated by the dev anyway. I say again, it should truncate and
 insert or update. That's how php works.

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


More information about the wp-trac mailing list