mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Merge pull request #1156 from wenshao/master
bug fixed for mysql url jdbc:mysql:replicate
This commit is contained in:
@@ -27,7 +27,7 @@ import com.mysql.jdbc.jdbc2.optional.SuspendableXAConnection;
|
||||
public class MySqlUtils {
|
||||
|
||||
public static XAConnection createXAConnection(Connection physicalConn) throws SQLException {
|
||||
com.mysql.jdbc.ConnectionImpl mysqlConn = (com.mysql.jdbc.ConnectionImpl)physicalConn;
|
||||
com.mysql.jdbc.Connection mysqlConn = (com.mysql.jdbc.Connection)physicalConn;
|
||||
if(mysqlConn.getPinGlobalTxToPhysicalConnection()) {
|
||||
|
||||
if (!Util.isJdbc4()) {
|
||||
|
||||
Reference in New Issue
Block a user