提交 5a9f3926 authored 作者: Thomas Mueller's avatar Thomas Mueller

When upgrading from an older 1.3.x version to version 1.3.157, when using BLOB…

When upgrading from an older 1.3.x version to version 1.3.157, when using BLOB or CLOB data, the database could only be opened once.
上级 2417b1c3
...@@ -373,7 +373,8 @@ public class AlterTableAlterColumn extends SchemaCommand { ...@@ -373,7 +373,8 @@ public class AlterTableAlterColumn extends SchemaCommand {
String newTableName = newTable.getName(); String newTableName = newTable.getName();
Database db = sourceTable.getDatabase(); Database db = sourceTable.getDatabase();
// save the real table under a temporary name // save the real table under a temporary name
db.renameSchemaObject(session, sourceTable, db.getTempTableName(sourceTableName, session)); String temp = db.getTempTableName(sourceTableName, session);
db.renameSchemaObject(session, sourceTable, temp);
try { try {
// have our new table impersonate the target table // have our new table impersonate the target table
db.renameSchemaObject(session, newTable, sourceTableName); db.renameSchemaObject(session, newTable, sourceTableName);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论