mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Escape new schema name when altering a table
When moving a table to another schema with a name which needs to be escaped, this would have generated an error prior to this commit.
This commit is contained in:
@@ -1168,7 +1168,7 @@ bool DBBrowserDB::renameColumn(const sqlb::ObjectIdentifier& tablename, const sq
|
||||
|
||||
// Copy the data from the old table to the new one
|
||||
if(!executeSQL(QString("INSERT INTO %1.sqlitebrowser_rename_column_new_table SELECT %2 FROM %3;")
|
||||
.arg(newSchemaName)
|
||||
.arg(sqlb::escapeIdentifier(newSchemaName))
|
||||
.arg(select_cols)
|
||||
.arg(tablename.toString())))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user