Skip to content

Commit 751cd07

Browse files
committed
test: load extension enabled by connection string
1 parent 8911981 commit 751cd07

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/test/java/org/sqlite/ExtensionTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ public void tearDown() throws Exception {
3232
}
3333
}
3434

35+
@Test
36+
public void loadExtensionEnabled() throws Exception {
37+
SQLiteConnection connection = (SQLiteConnection) DriverManager.getConnection("jdbc:sqlite::memory:?enable_load_extension=true");
38+
assertThat(connection.getDatabase().getConfig().isEnabledLoadExtension()).isTrue();
39+
}
40+
3541
@Test
3642
public void extFTS3() throws Exception {
3743
stat.execute("create virtual table recipe using fts3(name, ingredients)");

0 commit comments

Comments
 (0)