import java.sql.*;
import java.util.*;
import javax.sql.*;


public class Bug15464 extends testsuite.BaseTestCase {


	public Bug15464(String name) {
		super(name);
	}

	public void setUp() throws Exception {
                dbUrl = "jdbc:mysql://localhost:3306/test?user=root";
		super.setUp();
	}

	public void testPound15464() throws SQLException {
           System.out.println("START");

           CallableStatement cStmt = conn.prepareCall("{call demoSp(?, ?)}");          
                          
           cStmt.registerOutParameter("inOutParam", Types.INTEGER);
           cStmt.setString(1, "hello");
           cStmt.setInt("inOutParam", 4);
           cStmt.execute();
           System.out.println(cStmt.getInt("inOutParam"));

           System.out.println("END");
        }

	public static void main(String args[]) throws Exception {
		junit.textui.TestRunner.run(Bug15464.class);
	}

}
