提交 2748b4f5 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 e3d1039b
...@@ -27,6 +27,10 @@ public class Constant extends SchemaObject { ...@@ -27,6 +27,10 @@ public class Constant extends SchemaObject {
throw Message.getInternalError(); throw Message.getInternalError();
} }
public String getDropSQL() {
return null;
}
public String getCreateSQL() { public String getCreateSQL() {
StringBuffer buff = new StringBuffer(); StringBuffer buff = new StringBuffer();
buff.append("CREATE CONSTANT "); buff.append("CREATE CONSTANT ");
......
...@@ -46,6 +46,10 @@ public class Schema extends DbObject { ...@@ -46,6 +46,10 @@ public class Schema extends DbObject {
throw Message.getInternalError(); throw Message.getInternalError();
} }
public String getDropSQL() {
return null;
}
public String getCreateSQL() { public String getCreateSQL() {
if(system) { if(system) {
return null; return null;
......
...@@ -45,6 +45,13 @@ public class Sequence extends SchemaObject { ...@@ -45,6 +45,13 @@ public class Sequence extends SchemaObject {
this.increment = inc; this.increment = inc;
} }
public String getDropSQL() {
if(getBelongsToTable()) {
return null;
}
return "DROP SEQUENCE IF EXISTS " + getSQL();
}
public String getCreateSQLForCopy(Table table, String quotedName) { public String getCreateSQLForCopy(Table table, String quotedName) {
throw Message.getInternalError(); throw Message.getInternalError();
} }
......
...@@ -162,6 +162,10 @@ public class TriggerObject extends SchemaObject { ...@@ -162,6 +162,10 @@ public class TriggerObject extends SchemaObject {
return noWait; return noWait;
} }
public String getDropSQL() {
return null;
}
public String getCreateSQLForCopy(Table table, String quotedName) { public String getCreateSQLForCopy(Table table, String quotedName) {
StringBuffer buff = new StringBuffer(); StringBuffer buff = new StringBuffer();
buff.append("CREATE TRIGGER "); buff.append("CREATE TRIGGER ");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论