import java.sql.SQLException; import java.sql.Statement; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.util.*; public class Bug13668 extends testsuite.BaseTestCase { public Bug13668(String name) { super(name); } public void setUp() throws Exception { dbUrl = "jdbc:mysql://localhost:3306/test?user=root"; super.setUp(); } public void testPound13668() throws SQLException { System.out.println("START"); PreparedStatement stmt = conn.prepareStatement("call AA();",Statement.RETURN_GENERATED_KEYS); ResultSet rs = stmt.getGeneratedKeys(); if (rs != null) { System.out.println("It's not null"); } System.out.println("END"); } public static void main(String args[]) throws Exception { junit.textui.TestRunner.run(Bug13668.class); } }