assertEquals(1, count);
}
public void testParameterizedInsert() throws Exception
{
final Handle h = openHandle();
final int count = h.createStatement("tests:parameterized_insert")
.define("table", "something")
.define("column_one", "id")
.define("column_two", "name")
.bind("column_one", 7)
.bind("column_two", "Rebecca")
.execute();
assertEquals(1, count);
final String name = h.createQuery("select name from something where id = 7")
.map(StringMapper.FIRST)
.first();
assertEquals(name, "Rebecca");
}