diff options
Diffstat (limited to 'src/main/java/com/iciql/Db.java')
-rw-r--r-- | src/main/java/com/iciql/Db.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/iciql/Db.java b/src/main/java/com/iciql/Db.java index 4c99037..67e73b0 100644 --- a/src/main/java/com/iciql/Db.java +++ b/src/main/java/com/iciql/Db.java @@ -90,15 +90,14 @@ public class Db implements AutoCloseable { private Db(Connection conn) {
this.conn = conn;
String databaseName = null;
- DatabaseMetaData data = null;
try {
- data = conn.getMetaData();
+ DatabaseMetaData data = conn.getMetaData();
databaseName = data.getDatabaseProductName();
} catch (SQLException s) {
throw new IciqlException(s, "failed to retrieve database metadata!");
}
dialect = getDialect(databaseName, conn.getClass().getName());
- dialect.configureDialect(databaseName, data);
+ dialect.configureDialect(this);
}
/**
|