From f267665625980d52f0b2f52a8ea956270e081d9e Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 3 Jul 2024 12:26:44 +0100 Subject: [PATCH] Update __init__.py to initialise the driver rather than just get the class I had to make this change to work for my installation. Think after early versions of Java it looks like this is necessary --- jaydebeapi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jaydebeapi/__init__.py b/jaydebeapi/__init__.py index a890c3d..f8f385c 100644 --- a/jaydebeapi/__init__.py +++ b/jaydebeapi/__init__.py @@ -218,7 +218,7 @@ def _jdbc_connect_jpype(jclassname, url, driver_args, jars, libs): def _java_array_byte(data): return jpype.JArray(jpype.JByte, 1)(data) # register driver for DriverManager - jpype.JClass(jclassname) + jpype.JClass(jclassname)() if isinstance(driver_args, dict): Properties = jpype.java.util.Properties info = Properties()