-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support INSERT RETURNING on MariaDB 10.5+, and use it when saving new…
… model objects Do not use this on jdbc/mysql, because the MySQL JDBC driver raises an exception before sending the query to the server because it parses the query and because it is INSERT, and MySQL does not support INSERT returning result sets. This is probably fixable by using the MariaDB JDBC driver, but Sequel doesn't yet support that. The jdbc-mariadb Ruby gem is old enough that it is unlikely to have support. If the jdbc-mariadb gem is updated to a version that supports this, we can add a jdbc/mariadb adapter and support INSERT RETURNING when using it.
- Loading branch information
1 parent
5e5f703
commit 0d509ad
Showing
2 changed files
with
23 additions
and
1 deletion.
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