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

--no commit message

--no commit message
上级 e3d1039b
...@@ -26,6 +26,10 @@ public class Constant extends SchemaObject { ...@@ -26,6 +26,10 @@ public class Constant extends SchemaObject {
public String getCreateSQLForCopy(Table table, String quotedName) { public String getCreateSQLForCopy(Table table, String quotedName) {
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();
......
...@@ -45,6 +45,10 @@ public class Schema extends DbObject { ...@@ -45,6 +45,10 @@ public class Schema extends DbObject {
public String getCreateSQLForCopy(Table table, String quotedName) { public String getCreateSQLForCopy(Table table, String quotedName) {
throw Message.getInternalError(); throw Message.getInternalError();
} }
public String getDropSQL() {
return null;
}
public String getCreateSQL() { public String getCreateSQL() {
if(system) { if(system) {
......
...@@ -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();
} }
......
...@@ -161,6 +161,10 @@ public class TriggerObject extends SchemaObject { ...@@ -161,6 +161,10 @@ public class TriggerObject extends SchemaObject {
public boolean getNoWait() { public boolean getNoWait() {
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();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论