import testsuite.BaseTestCase; import java.sql.*; public class bug28689 extends BaseTestCase { public bug28689(String name) { super(name); // TODO Auto-generated constructor stub dbUrl = "jdbc:mysql://127.0.0.1:3351/bug28689?user=bug28689&noAccessToProcedureBodies=true"; } public static void main(String[] args) { junit.textui.TestRunner.run(bug28689.class); } public void testBug3753() throws Exception { try { System.out.println("java.vm.version : " + System.getProperty("java.vm.version")); System.out.println("java.vm.vendor : " + System.getProperty("java.vm.vendor")); System.out.println("java.runtime.version : " + System.getProperty("java.runtime.version")); System.out.println("os.name : " + System.getProperty("os.name")); System.out.println("os.version : " + System.getProperty("os.version ")); System.out.println("sun.management.compiler : " + System.getProperty("sun.management.compiler")); CallableStatement stmt = this.conn.prepareCall("{ call mysp(?) }"); stmt.setInt(1, 1); stmt.addBatch(); int[] updateCounts = stmt.executeBatch(); System.out.print("UPDATE: " + updateCounts[0]); stmt.close(); } finally { closeMemberJDBCResources(); } } }