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)master
parent
3e6e2484f0
commit
12d8ee4d4a
|
|
@ -192,7 +192,7 @@ def _jdbc_connect_jpype(jclassname, url, driver_args, jars, libs):
|
||||||
types = jpype.java.sql.Types
|
types = jpype.java.sql.Types
|
||||||
types_map = {}
|
types_map = {}
|
||||||
for i in types.__javaclass__.getClassFields():
|
for i in types.__javaclass__.getClassFields():
|
||||||
types_map[i.getName()] = i.getStaticAttribute()
|
types_map[i.getName()] = i.__get__(i)
|
||||||
_init_types(types_map)
|
_init_types(types_map)
|
||||||
global _java_array_byte
|
global _java_array_byte
|
||||||
if _java_array_byte is None:
|
if _java_array_byte is None:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue