diff options
author | James Moger <james.moger@gmail.com> | 2011-08-17 08:02:23 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2011-08-17 08:02:23 -0400 |
commit | 1734dc44d70391aeef26cacdf4d9f07c289e476e (patch) | |
tree | 6dedc021df14d8498c1166946f1ff760db37ceed /src/com/iciql/Db.java | |
parent | 265bb2eebd995af0445ce7bc37f066e43d7da287 (diff) | |
download | iciql-1734dc44d70391aeef26cacdf4d9f07c289e476e.tar.gz iciql-1734dc44d70391aeef26cacdf4d9f07c289e476e.zip |
Added support for PostgreSQL. Passes all but the boolean-as-int tests.
Diffstat (limited to 'src/com/iciql/Db.java')
-rw-r--r-- | src/com/iciql/Db.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/iciql/Db.java b/src/com/iciql/Db.java index d369c2c..da0a7ac 100644 --- a/src/com/iciql/Db.java +++ b/src/com/iciql/Db.java @@ -72,10 +72,11 @@ public class Db { // can register by...
// 1. Connection class name
// 2. DatabaseMetaData.getDatabaseProductName()
+ DIALECTS.put("Apache Derby", SQLDialectDerby.class);
DIALECTS.put("H2", SQLDialectH2.class);
- DIALECTS.put("MySQL", SQLDialectMySQL.class);
DIALECTS.put("HSQL Database Engine", SQLDialectHSQL.class);
- DIALECTS.put("Apache Derby", SQLDialectDerby.class);
+ DIALECTS.put("MySQL", SQLDialectMySQL.class);
+ DIALECTS.put("PostgreSQL", SQLDialectPostgreSQL.class);
}
private Db(Connection conn) {
@@ -249,8 +250,7 @@ public class Db { try {
rc = stat.executeUpdate();
} catch (IciqlException e) {
- if (e.getIciqlCode() != IciqlException.CODE_SCHEMA_NOT_FOUND
- && e.getIciqlCode() != IciqlException.CODE_TABLE_NOT_FOUND) {
+ if (e.getIciqlCode() != IciqlException.CODE_OBJECT_NOT_FOUND) {
throw e;
}
}
|