import java.sql.SQLException; import java.sql.Statement; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.*; import javax.sql.*; public class Bug15172 extends testsuite.BaseTestCase { public Bug15172(String name) { super(name); } public void setUp() throws Exception { dbUrl = "jdbc:mysql://localhost:3306/test?user=root&useSSL=true"; super.setUp(); } public void testPound15172() throws SQLException { Statement stmt = null; System.out.println("START"); String sql = "show status like 'ssl%'"; System.out.println(sql); stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(sql); while ( rs.next() ) { System.out.println(rs.getString(1)+" " +rs.getString(2)); } System.out.println("END"); } public static void main(String args[]) throws Exception { junit.textui.TestRunner.run(Bug15172.class); } }