Fixes #866 mark commit state dirty when Connection.getMetaData() is called.

pull/851/merge
Brett Wooldridge 8 years ago
parent 874b697086
commit f9ee36e339

@ -22,6 +22,7 @@ import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Savepoint;
@ -346,6 +347,14 @@ public abstract class ProxyConnection implements Connection
return ProxyFactory.getProxyPreparedStatement(this, trackStatement(delegate.prepareStatement(sql, columnNames)));
}
/** {@inheritDoc} */
@Override
public DatabaseMetaData getMetaData() throws SQLException
{
markCommitStateDirty();
return delegate.getMetaData();
}
/** {@inheritDoc} */
@Override
public void commit() throws SQLException

Loading…
Cancel
Save