add xa support

This commit is contained in:
wenshao
2012-08-21 06:57:54 +08:00
parent 37fc58fefd
commit f9acc0e6b2
10 changed files with 68 additions and 1048 deletions
@@ -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);
}
}