Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit b3a42c6

Browse files
Merge pull request #85 from Thrameos/jpype_0.7.0
Update options for JPype 0.7.0
2 parents 4944ebd + c4eaf94 commit b3a42c6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pyathenajdbc/connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ def _start_jvm(cls, jvm_path, jvm_options, driver_path, log4j_conf):
9494
if jvm_options:
9595
args.extend(jvm_options)
9696
_logger.debug('JVM args: %s', args)
97-
jpype.startJVM(jvm_path, *args)
97+
if jpype.__version__.startswith("0.6"):
98+
jpype.startJVM(jvm_path, *args)
99+
else:
100+
jpype.startJVM(jvm_path, *args, ignoreUnrecognized=True, convertStrings=True)
98101
cls.class_loader = jpype.java.lang.Thread.currentThread().getContextClassLoader()
99102
if not jpype.isThreadAttachedToJVM():
100103
jpype.attachThreadToJVM()

0 commit comments

Comments
 (0)