woocommerce / action-scheduler-custom-tables

This plugin is no longer needed. The custom table code is now part of Action Scheduler version 3.0 and newer. If you're using the latest Action Scheduler, you have the most performant schema available.
https://actionscheduler.org
15 stars 3 forks source link

Failed insert isn't identified and handled #11

Closed JPry closed 5 years ago

JPry commented 6 years ago

When creating a new action in the DB_Store class, we don't do any checking to verify that the ID is valid, or that no error occurred. When an error occurs, I've found that the ID will be set to 0, which is one way to check that the insertion was successful. We should also be able to check $wpdb->last_error.