mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
Fix crashing when joining two JDBC tables..
Was in close (the virtual machine could have been detached. modified: storage/connect/jdbconn.cpp
This commit is contained in:
parent
403ef9918f
commit
62cd105689
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue