Browse Source

Fix crashing when joining two JDBC tables..

Was in close (the virtual machine could have been detached.
  modified:   storage/connect/jdbconn.cpp
pull/322/merge
Olivier Bertrand 9 years ago
parent
commit
d75e5e6e26
  1. 3
      storage/connect/jdbconn.cpp

3
storage/connect/jdbconn.cpp

@ -1165,6 +1165,9 @@ void JDBConn::Close()
jint rc;
jmethodID did = nullptr;
// Could have been detached in case of join
rc = jvm->AttachCurrentThread((void**)&env, nullptr);
if (gmID(m_G, did, "JdbcDisconnect", "()I"))
printf("%s\n", Msg);
else if (Check(env->CallIntMethod(job, did)))

Loading…
Cancel
Save