<modelVersion>4.0.0</modelVersion>\r
<groupId>org.xerial</groupId>\r
<artifactId>sqlite-jdbc</artifactId>\r
- <version>3.6.10</version>\r
+ <version>3.6.10.1-SNAPSHOT</version>\r
<name>SQLite JDBC</name>\r
<description>SQLite JDBC library</description>\r
\r
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
+import java.util.Properties;
import org.junit.After;
import org.junit.Before;
@Before
public void connect() throws Exception
{
- conn = DriverManager.getConnection("jdbc:sqlite:");
+ Properties prop = new Properties();
+ prop.setProperty("shared_cache", "true");
+ conn = DriverManager.getConnection("jdbc:sqlite:", prop);
stat = conn.createStatement();
stat.executeUpdate("create table test (id integer primary key, fn, sn);");
stat.executeUpdate("create view testView as select * from test;");