mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for issue #3045
This commit is contained in:
@@ -132,14 +132,14 @@ public class MySqlUtils {
|
||||
|
||||
try {
|
||||
// pinGlobalTxToPhysicalConnection
|
||||
boolean pinGlobTx = (Boolean) method_6_getValue.invoke(
|
||||
Boolean pinGlobTx = (Boolean) method_6_getValue.invoke(
|
||||
method_6_getBooleanReadableProperty.invoke(
|
||||
method_6_getPropertySet.invoke(physicalConn)
|
||||
, "pinGlobalTxToPhysicalConnection"
|
||||
)
|
||||
);
|
||||
|
||||
if (pinGlobTx) {
|
||||
if (pinGlobTx != null && pinGlobTx) {
|
||||
try {
|
||||
if (method_6_getInstance == null && !method_6_getInstance_error) {
|
||||
class_6_suspendableXAConnection = Class.forName("com.mysql.cj.jdbc.SuspendableXAConnection");
|
||||
|
||||
Reference in New Issue
Block a user