Skip to content

Commit

Permalink
Merge branch 'thealmightygrant-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
baztian committed May 27, 2020
2 parents 55c9b44 + f1637fc commit 67b0051
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jaydebeapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def _jdbc_connect_jpype(jclassname, url, driver_args, jars, libs):
convertStrings=True)
if not jpype.isThreadAttachedToJVM():
jpype.attachThreadToJVM()
jpype.java.lang.Thread.currentThread().setContextClassLoader(jpype.java.lang.ClassLoader.getSystemClassLoader())
if _jdbc_name_to_const is None:
types = jpype.java.sql.Types
types_map = {}
Expand Down

0 comments on commit 67b0051

Please sign in to comment.