Skip to content

Commit

Permalink
default compatible to current platform
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Apr 24, 2012
1 parent d7d86c6 commit 9cb6038
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -60,7 +60,7 @@ public enum Compatible { DB2, DERBY, FIREBIRD, H2, HSQLDB, HSQLDB2, INFORMIX, IN

private Format format = Format.SQL;

private Compatible compatible = Compatible.ORACLE;
private Compatible compatible;

private boolean addDropTable;

Expand All @@ -86,10 +86,12 @@ public enum Compatible { DB2, DERBY, FIREBIRD, H2, HSQLDB, HSQLDB2, INFORMIX, IN

public DbExport(IDatabasePlatform platform) {
this.platform = platform;
compatible = Compatible.valueOf(platform.getName().toUpperCase());
}

public DbExport(DataSource dataSource) {
platform = JdbcDatabasePlatformFactory.createNewPlatformInstance(dataSource, new DatabasePlatformSettings());
compatible = Compatible.valueOf(platform.getName().toUpperCase());
}

public String exportTables() throws IOException {
Expand Down

0 comments on commit 9cb6038

Please sign in to comment.