Conversation
594a4d7 to
c72f00a
Compare
c72f00a to
f603890
Compare
|
Should be covered in jpype-project/jpype#498 and pyathena-dev/PyAthenaJDBC#85 The original exception code caught a dummy class that held the real exception as the first argument but the version directly throws the exception. There was a common pattern that both versions are supposed to be able to use using JException, but thus far I have seen a lot of code that get into the arguments. Hopefully these two threads have enough to help. If not just reply an I will take a deeper look at your structure. |
|
Thanks @Thrameos. I tried two different approaches to deal with exceptions in this PR. Looking deeper into it it seems I'm (now) catching the exceptions correctly. But the unit test uses str/toString on the exception and is getting the wrong output. The code works with the older JPypes and with Jython. The output of the test can be found in the travis job output. It seems to be a JPype 0.7 shortcomming. Can you please have another look on this? |
|
One other thing in JPype 0.7 I don't really get is that string conversion seems to be changed for non Pyhton 3 versions. https://travis-ci.org/baztian/jaydebeapi/jobs/556477652#L286 works with the old JPype version: https://travis-ci.org/baztian/jaydebeapi/jobs/556477652#L498 |
|
Well Seems like the line 65 in should read as |
|
As to the other question, are you referring to string conversions in general such as returning |
|
I'm going to ignore that issue with 0.7.0 and test against 0.7.1. #151 will fix the build |
thanks @Thrameos for pointing out the issue (#102)