mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add xa support
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.alibaba.druid.util;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
|
||||
import com.mysql.jdbc.jdbc2.optional.MysqlXAConnection;
|
||||
|
||||
public class MySqlUtils {
|
||||
|
||||
public static MysqlXAConnection createXAConnection(Connection physicalConn) throws SQLException {
|
||||
return new MysqlXAConnection((com.mysql.jdbc.ConnectionImpl) physicalConn, false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user