-
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.
Some small fixes for MySQL and for upcasing identifiers on JDBC
This changes Dataset#upcase_identifiers? to lazily load the setting. Previously, it was handled in Database#initialize, but on JDBC (and other adapters that have subadapters), the method that provides the default hasn't been included in the class when Database#initialize tried to use it, so this would end up with identifiers being upcased when using MySQL, PostgreSQL, or SQLite on JDBC. This fixes Database#alter_table for MySQL, for the drop_index case, and fixes the MySQL schema parser to handle the fact that the table name provided to schema_parse_table is now a string instead of a symbol.
- Loading branch information
1 parent
ace69a0
commit d407190
Showing
2 changed files
with
3 additions
and
4 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