From 12d8ee4d4a4219887a90435ec59743d4b037f999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC=20=D0=A1=D1=82=D0=B0=D1=80?= =?UTF-8?q?=D1=87=D0=B5=D0=BD=D0=BA=D0=BE?= <41ways1ucky@gmail.com> Date: Tue, 25 Jun 2019 16:45:45 +0300 Subject: [PATCH] Fixed incompatibility with JPype1 v0.7.0 * replaced call to deleted method getStaticAttribute with call to __get__ * added parameter convertStrings=True to mimic old default behaviour of JPype1 see [docs](https://jpype.readthedocs.io/en/latest/api.html#jpype.startJVM) --- jaydebeapi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jaydebeapi/__init__.py b/jaydebeapi/__init__.py index ecb5ef1..f89d301 100644 --- a/jaydebeapi/__init__.py +++ b/jaydebeapi/__init__.py @@ -192,7 +192,7 @@ def _jdbc_connect_jpype(jclassname, url, driver_args, jars, libs): types = jpype.java.sql.Types types_map = {} for i in types.__javaclass__.getClassFields(): - types_map[i.getName()] = i.getStaticAttribute() + types_map[i.getName()] = i.__get__(i) _init_types(types_map) global _java_array_byte if _java_array_byte is None: