Skip to content

Commit

Permalink
0000021: SQLite - drop table ddl needs if exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanes committed Dec 12, 2012
1 parent 9f613fa commit b981359
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -92,4 +92,11 @@ protected void writeEmbeddedPrimaryKeysStmt(Table table, StringBuilder ddl) {
super.writeEmbeddedPrimaryKeysStmt(table, ddl);
}
}

@Override
protected void dropTable(Table table, StringBuilder ddl, boolean temporary, boolean recreate) {
ddl.append("DROP TABLE IF EXISTS ");
printIdentifier(getTableName(table.getName()), ddl);
printEndOfStatement(ddl);
}
}

0 comments on commit b981359

Please sign in to comment.