Commit d75e5e6e authored by Olivier Bertrand's avatar Olivier Bertrand

Fix crashing when joining two JDBC tables..

Was in close (the virtual machine could have been detached.
  modified:   storage/connect/jdbconn.cpp
parent 6f34d880
......@@ -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)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment