-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use mysql_exec_statement API whenever possible
The list of statements supported by the prepared statement API includes most things: https://dev.mysql.com/doc/refman/8.0/en/sql-prepared-statements.html#prepared-statements-permitted Consistently using this API when possible provides consistency with NULL handling and potentially other divergences which we've not yet discovered. A few, such as LOCK TABLE or LOAD TABLE or SHOW WARNINGS, are yet supported so fallback to the older query mechanism when required. If performance with this type of query is an issue, peaking at the first word might be possible rather than relying strictly on the try/catch.
- Loading branch information
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters