@@ -0,0 +1,1318 @@
+package org.jdbchub.jdbc;%0A%0Aimport org.junit.Test;%0Aimport org.skife.jdbi.v2.DBI;%0Aimport org.skife.jdbi.v2.Handle;%0Aimport org.skife.jdbi.v2.Query;%0Aimport org.skife.jdbi.v2.util.StringMapper;%0Aimport java.sql.CallableStatement;%0Aimport java.sql.Connection;%0Aimport java.sql.SQLException;%0Aimport static java.lang.String.format;%0Aimport static java.util.Arrays.asList;%0Aimport static org.jdbchub.JdbcHubTestUtils.createTestConnection;%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class JdbcCallableStatementTest %7B%0A%0A%09@Test%0A%09public void testCall() throws Exception %7B%0A%09%09try (JdbcConnection c = createTestConnection()) %7B%0A%09%09%09Handle h = DBI.open(c);%0A%09%09%09h.execute(%22create alias test_function for %5C%22org.jdbchub.jdbc.JdbcCallableStatementTest.testFunction%5C%22%22);%0A%09%09%09CallableStatement st = c.prepareCall(%22%7Bcall test_function(?, ?)%7D%22);%0A%09%09%09st.setString(1, %22nv1%22);%0A%09%09%09st.setString(2, %22%251%22);%0A%09%09%09st.execute();%0A%09%09%09Query%3CString%3E q = h.createQuery(%22select value from test_items where name like '%251'%22).map(StringMapper.FIRST);%0A%09%09%09assertEquals(asList(%22nv1%22, %22nv1%22, %22nv1%22), q.list());%0A%09%09%7D%0A%09%7D%0A%0A%09public static int testFunction(Connection c, String value, String nameExp) throws SQLException %7B%0A%09%09String sql = format(%22update test_items set value = '%25s' where name like '%25s'%22, value, nameExp);%0A%09%09return c.createStatement().executeUpdate(sql);%0A%09%7D%0A%0A%7D

add JdbcCallableStatementTest