mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved jdk7 support & postgresql support.
This commit is contained in:
@@ -40,6 +40,7 @@ import java.util.Calendar;
|
||||
import com.alibaba.druid.pool.PreparedStatementPool.MethodType;
|
||||
import com.alibaba.druid.support.logging.Log;
|
||||
import com.alibaba.druid.support.logging.LogFactory;
|
||||
import com.alibaba.druid.util.JdbcConstants;
|
||||
import com.alibaba.druid.util.OracleUtils;
|
||||
|
||||
/**
|
||||
@@ -623,6 +624,10 @@ public class DruidPooledPreparedStatement extends DruidPooledStatement implement
|
||||
public ResultSetMetaData getMetaData() throws SQLException {
|
||||
checkOpen();
|
||||
|
||||
if (!conn.holder.isUnderlyingAutoCommit()) {
|
||||
conn.createTransactionInfo();
|
||||
}
|
||||
|
||||
try {
|
||||
return stmt.getMetaData();
|
||||
} catch (Throwable t) {
|
||||
@@ -689,6 +694,10 @@ public class DruidPooledPreparedStatement extends DruidPooledStatement implement
|
||||
public ParameterMetaData getParameterMetaData() throws SQLException {
|
||||
checkOpen();
|
||||
|
||||
if (!conn.holder.isUnderlyingAutoCommit()) {
|
||||
conn.createTransactionInfo();
|
||||
}
|
||||
|
||||
try {
|
||||
return stmt.getParameterMetaData();
|
||||
} catch (Throwable t) {
|
||||
|
||||
Reference in New Issue
Block a user