import java.sql.SQLException; import java.sql.Statement; import java.sql.ResultSet; public class Bug13374 extends testsuite.BaseTestCase { public Bug13374(String name) { super(name); } public void setUp() throws Exception { super.setUp(); } public void testPound13374() throws SQLException { System.out.println("START"); ResultSet resultSet = stmt.executeQuery("show tables"); Statement stmtBeforeClose = resultSet.getStatement(); resultSet.close(); Statement stmtAfterClose = resultSet.getStatement(); if (stmtBeforeClose != null) System.out.println("stmtBeforeClose is not null"); else System.out.println("stmtBeforeClose is null"); if (stmtAfterClose != null) System.out.println("stmtAfterClose is not null"); else System.out.println("stmtAfterClose is null"); System.out.println("END"); } public static void main(String args[]) throws Exception { junit.textui.TestRunner.run(Bug13374.class); } }