提交 074a4572 authored 作者: Thomas Mueller's avatar Thomas Mueller

Commit DDL transactions

上级 5d074f72
...@@ -139,9 +139,6 @@ public class AlterTableAlterColumn extends SchemaCommand { ...@@ -139,9 +139,6 @@ public class AlterTableAlterColumn extends SchemaCommand {
break; break;
} }
case CHANGE_TYPE: { case CHANGE_TYPE: {
// TODO document data type change problems when used with
// autoincrement columns.
// sequence will be unlinked
checkNoViews(); checkNoViews();
oldColumn.setSequence(null); oldColumn.setSequence(null);
oldColumn.setDefaultExpression(session, null); oldColumn.setDefaultExpression(session, null);
...@@ -366,8 +363,7 @@ public class AlterTableAlterColumn extends SchemaCommand { ...@@ -366,8 +363,7 @@ public class AlterTableAlterColumn extends SchemaCommand {
private void execute(String sql, boolean ddl) throws SQLException { private void execute(String sql, boolean ddl) throws SQLException {
Prepared command = session.prepare(sql); Prepared command = session.prepare(sql);
command.update(); command.update();
if (ddl && session.getDatabase().isMultiVersion()) { if (ddl) {
// TODO this should work without MVCC, but avoid risks at the moment
session.commit(true); session.commit(true);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论