[wp-trac] [WordPress Trac] #32315: $wpdb->insert fails without error msg
WordPress Trac
noreply at wordpress.org
Sat Oct 28 13:59:35 UTC 2017
#32315: $wpdb->insert fails without error msg
-------------------------------------------------+-------------------------
Reporter: dlt101 | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting
Component: Database | Review
Severity: normal | Version: 4.2.1
Keywords: dev-feedback has-patch has-unit- | Resolution:
tests | Focuses:
-------------------------------------------------+-------------------------
Changes (by jdgrimes):
* keywords: needs-unit-tests dev-feedback has-patch => dev-feedback has-
patch has-unit-tests
Comment:
Thanks for testing @mnelson4.
I've uploaded [attachment:32315.2.diff], which also sets `last_error` and
`last_query` when invalid characters are detected in the `query()` method
(the previous patch only addressed the CRUD methods). I've also included
more unit tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32315#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list