Skip to content

Commit 5bf9e2b

Browse files
committed
Fixed lock on CONNECT triggers and double fire on DISCONNECT triggers.
1 parent a4da2df commit 5bf9e2b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/fbjava/src/main/java/org/firebirdsql/fbjava/impl/DbClassLoader.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.sql.Connection;
2929
import java.sql.DriverManager;
3030
import java.sql.SQLException;
31+
import java.util.Properties;
3132

3233
import org.firebirdsql.gds.ISCConstants;
3334
import org.firebirdsql.gds.TransactionParameterBuffer;
@@ -55,8 +56,11 @@ final class DbClassLoader extends URLClassLoader
5556

5657
codeSource = new CodeSource(urls[0], (Certificate[]) null);
5758

59+
Properties properties = new Properties();
60+
properties.setProperty("isc_dpb_no_db_triggers", "1");
61+
5862
connection = (FBConnection) DriverManager.getConnection(
59-
"jdbc:firebirdsql:embedded:" + databaseName + "?charSet=UTF-8");
63+
"jdbc:firebirdsql:embedded:" + databaseName + "?charSet=UTF-8", properties);
6064
connection.setAutoCommit(false);
6165
connection.setReadOnly(true);
6266

0 commit comments

Comments
 (0)