-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build temporary table name for SQLite from unqualified table name
In some situations, SqlitePlatform::getAlterTableSQL() relies on a temporary table to store data from the original table while it gets recreated. The name of this temporary table is built by concatenating a prefix (__temp__) with the name of the original table. When the original table name is foo.bar, there is an issue because then the temporary table name becomes __temp__foo.bar which implies schema.table. Use the unqualified table name so that the temporary table becomes __temp__bar.
- Loading branch information
Showing
3 changed files
with
52 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