summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2015-04-30 12:04:02 -0400
committerJames Moger <james.moger@gitblit.com>2015-04-30 13:53:58 -0400
commit3b421139610d0df38b12694e4291b64bb8738c8e (patch)
tree1421c320b6223154ae728f8f4a544fab2a4d04bc
parent23eaf92995f7e2b087db19e03feffb733c0fd8f8 (diff)
downloadiciql-3b421139610d0df38b12694e4291b64bb8738c8e.tar.gz
iciql-3b421139610d0df38b12694e4291b64bb8738c8e.zip
Update to SQLite-jdbc 3.8.9 and improve the testsuite
-rw-r--r--.classpath2
-rw-r--r--build.moxie2
-rw-r--r--src/test/java/com/iciql/test/IciqlSuite.java39
3 files changed, 38 insertions, 5 deletions
diff --git a/.classpath b/.classpath
index 0c11f59..7447974 100644
--- a/.classpath
+++ b/.classpath
@@ -10,7 +10,7 @@
<classpathentry kind="lib" path="ext/derbynet-10.11.1.1.jar" />
<classpathentry kind="lib" path="ext/mysql-connector-java-5.1.33.jar" />
<classpathentry kind="lib" path="ext/postgresql-9.4-1201-jdbc41.jar" sourcepath="ext/src/postgresql-9.4-1201-jdbc41.jar" />
- <classpathentry kind="lib" path="ext/sqlite-jdbc-3.8.7.jar" sourcepath="ext/src/sqlite-jdbc-3.8.7.jar" />
+ <classpathentry kind="lib" path="ext/sqlite-jdbc-3.8.9.jar" />
<classpathentry kind="lib" path="ext/slf4j-api-1.7.12.jar" sourcepath="ext/src/slf4j-api-1.7.12.jar" />
<classpathentry kind="lib" path="ext/commons-pool-1.5.6.jar" sourcepath="ext/src/commons-pool-1.5.6.jar" />
<classpathentry kind="lib" path="ext/commons-dbcp-1.4.jar" sourcepath="ext/src/commons-dbcp-1.4.jar" />
diff --git a/build.moxie b/build.moxie
index f823f1d..34940ad 100644
--- a/build.moxie
+++ b/build.moxie
@@ -87,7 +87,7 @@ properties: {
derby.version : 10.11.1.1
mysql.version : 5.6
postgresql.version : 9.3
- sqlite.version : 3.8.7
+ sqlite.version : 3.8.9
}
dependencies:
diff --git a/src/test/java/com/iciql/test/IciqlSuite.java b/src/test/java/com/iciql/test/IciqlSuite.java
index 19b3d60..f30caf6 100644
--- a/src/test/java/com/iciql/test/IciqlSuite.java
+++ b/src/test/java/com/iciql/test/IciqlSuite.java
@@ -114,9 +114,42 @@ public class IciqlSuite {
new TestDb("Derby", "tcp", "jdbc:derby://localhost:1527/testdbs/derby/iciql;create=true", "sa", "sa"),
new TestDb("MySQL", "tcp", "jdbc:mysql://localhost:3306/iciql", "sa", "sa"),
new TestDb("PostgreSQL", "tcp", "jdbc:postgresql://localhost:5432/iciql", "sa", "sa"),
- new TestDb("SQLite", "memory", "jdbc:sqlite:file:iciql?mode=memory&cache=shared"),
- new TestDb("SQLite", "delete,full sync", "jdbc:sqlite:"
- + new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath())
+
+ //
+ // SQLite Memory
+ //
+ new TestDb("SQLite", "memory", "jdbc:sqlite:file::memory:?cache=shared&foreign_keys=ON"),
+
+ //
+ // SQLite DELETE rollback journal (default)
+ //
+ new TestDb("SQLite", "delete,full_sync", "jdbc:sqlite:"
+ + new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ + "?foreign_keys=ON&journal_mode=DELETE&synchronous=FULL"),
+
+ new TestDb("SQLite", "delete,norm_sync", "jdbc:sqlite:"
+ + new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ + "?foreign_keys=ON&journal_mode=DELETE&synchronous=NORMAL"),
+
+ new TestDb("SQLite", "delete,no_sync", "jdbc:sqlite:"
+ + new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ + "?foreign_keys=ON&journal_mode=DELETE&synchronous=OFF"),
+
+ //
+ // SQLite WAL
+ //
+ new TestDb("SQLite", "wal,full_sync", "jdbc:sqlite:"
+ + new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ + "?foreign_keys=ON&journal_mode=WAL&synchronous=FULL"),
+
+ new TestDb("SQLite", "wal,norm_sync", "jdbc:sqlite:"
+ + new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ + "?foreign_keys=ON&journal_mode=WAL&synchronous=NORMAL"),
+
+ new TestDb("SQLite", "wal,no_sync", "jdbc:sqlite:"
+ + new File(baseFolder, "/sqlite/iciql.db").getAbsolutePath()
+ + "?foreign_keys=ON&journal_mode=WAL&synchronous=OFF"),
+
};
private static final TestDb DEFAULT_TEST_DB = TEST_DBS[0];