Skip to content

Commit d75e5e6

Browse files
committed
Fix crashing when joining two JDBC tables..
Was in close (the virtual machine could have been detached. modified: storage/connect/jdbconn.cpp
1 parent 6f34d88 commit d75e5e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/connect/jdbconn.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,9 @@ void JDBConn::Close()
11651165
jint rc;
11661166
jmethodID did = nullptr;
11671167

1168+
// Could have been detached in case of join
1169+
rc = jvm->AttachCurrentThread((void**)&env, nullptr);
1170+
11681171
if (gmID(m_G, did, "JdbcDisconnect", "()I"))
11691172
printf("%s\n", Msg);
11701173
else if (Check(env->CallIntMethod(job, did)))

0 commit comments

Comments
 (0)