提交 b6b2550e authored 作者: Andrei Tokar's avatar Andrei Tokar

fix for TestScript ERROR: org/h2/test/scripts/ddl/dropSchema.sql:46 - synonym is…

fix for TestScript ERROR: org/h2/test/scripts/ddl/dropSchema.sql:46 - synonym is created within wrong schema
上级 8faf508c
...@@ -67,12 +67,12 @@ public class TableSynonym extends SchemaObjectBase { ...@@ -67,12 +67,12 @@ public class TableSynonym extends SchemaObjectBase {
@Override @Override
public String getCreateSQL() { public String getCreateSQL() {
return "CREATE SYNONYM " + getName() + " FOR " + data.synonymForSchema.getName() + "." + data.synonymFor; return "CREATE SYNONYM " + getSQL() + " FOR " + data.synonymForSchema.getName() + "." + data.synonymFor;
} }
@Override @Override
public String getDropSQL() { public String getDropSQL() {
return "DROP SYNONYM " + getName(); return "DROP SYNONYM " + getSQL();
} }
@Override @Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论