@@ -0,0 +1,1167 @@
+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.IntegerMapper;%0A%0Aimport java.sql.Connection;%0Aimport java.sql.Statement;%0Aimport java.util.List;%0A%0Aimport static java.util.Arrays.asList;%0Aimport static org.jdbchub.JdbcHubTestUtils.createTestDatabases;%0Aimport static org.junit.Assert.assertArrayEquals;%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class JdbcStatementTest %7B%0A%0A%09@Test%0A%09public void testBatch() throws Exception %7B%0A%09%09List%3CConnection%3E cons = createTestDatabases();%0A%09%09try (JdbcConnection c = new JdbcConnection(cons)) %7B%0A%09%09%09Statement st = c.createStatement();%0A%09%09%09st.addBatch(%22update test_items set value = 'a' where name like '%251'%22);%0A%09%09%09st.addBatch(%22update test_items set value = 'b' where name like '%2522'%22);%0A%09%09%09assertArrayEquals(new int%5B%5D %7B3, 1%7D, st.executeBatch());%0A%09%09%09Handle h = DBI.open(c);%0A%09%09%09Query%3CInteger%3E q = h.createQuery(%22select count(*) from test_items where value = ?%22).map(IntegerMapper.FIRST);%0A%09%09%09assertEquals(asList(1, 1, 1), q.bind(0, %22a%22).list());%0A%09%09%09assertEquals(asList(0, 1, 0), q.bind(0, %22b%22).list());%0A%09%09%7D%0A%09%7D%0A%0A%7D

add JdbcStatementTest