| 5 | | So when this error occurs, should we finish generating the SQL, put it in `$wpdb->last_query` etc, but not run the query? (I think this would be the most helpful to folks, but it might be confusing for someone reading the code that we detect a error but wait to abort the process.) Or should `$wpdb->last_query` be set to a empty string (indicating no query ran)? or should it be set to some sort of descriptive phrase like "WordPress was about to insert values(x, y, z) into columns (w,v,r), but column 't' was too small" (this has the advantage of allowing us to abort the execution right away, but we're not creating actual SQL like we normally would)? |
| | 5 | So when this error occurs, should we |
| | 6 | |
| | 7 | 1. finish generating the SQL, put it in `$wpdb->last_query` etc, but not run the query? (I think this would be the most helpful to folks, but it might be confusing for someone reading the code that we detect a error but wait to abort the process.) Or |
| | 8 | |
| | 9 | 2. should `$wpdb->last_query` be set to a empty string (indicating no query ran)? or |
| | 10 | |
| | 11 | 3. should it be set to some sort of descriptive phrase like "WordPress was about to insert values(x, y, z) into columns (w,v,r), but column 't' was too small" (this has the advantage of allowing us to abort the execution right away, but we're not creating actual SQL like we normally would)? |
| | 12 | |
| | 13 | Or something else? |