forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inserts on MySQL with no
RETURNING
support for a table with mul…
…tiple auto populated columns c2c861f wasn't a sufficient fix for tables that have more than just one auto populated column but the database doesn't support `RETURNING` statement. This commit ensures that mysql adapters will only consider `auto_increment` columns to be returned after insert which also implies that only one column can be returned after insert.
- Loading branch information
1 parent
da32425
commit ac84a0c
Showing
3 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
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