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,14 @@
|
||||
package com.alibaba.druid.util;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
|
||||
import org.postgresql.core.BaseConnection;
|
||||
import org.postgresql.xa.PGXAConnection;
|
||||
|
||||
public class PGUtils {
|
||||
|
||||
public static PGXAConnection createXAConnection(Connection physicalConn) throws SQLException {
|
||||
return new PGXAConnection((BaseConnection) physicalConn);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user