提交 e17fa58e authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Use db instead of targetSession.getDatabase() in Parser.createCTEView()

上级 95f3ded2
......@@ -5320,7 +5320,7 @@ public class Parser {
if (isPersistent) {
db.addSchemaObject(targetSession, view);
view.lock(targetSession, true, true);
targetSession.getDatabase().removeSchemaObject(targetSession, view);
db.removeSchemaObject(targetSession, view);
} else {
session.removeLocalTempTable(view);
}
......@@ -5330,7 +5330,7 @@ public class Parser {
isPersistent);
}
// both removeSchemaObject and removeLocalTempTable hold meta locks
targetSession.getDatabase().unlockMeta(targetSession);
db.unlockMeta(targetSession);
}
view.setTableExpression(true);
view.setTemporary(!isPersistent);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论