int count = dc.execUpdate("insert into update_sample values(1, 'ad')") ;
assertEquals(1, count) ;
}
public void testParameter() throws Exception {
IUserCommand cmd = dc.createUserCommand("insert into update_sample values(?, ?)") ;
cmd.addParam(1).addParam("abc") ;
int count = cmd.execUpdate() ;
assertEquals(1, count) ;
IUserCommand cmd2 = dc.createUserCommand("insert into update_sample values(?, ?)") ;
cmd2.addParam(0, 2) ; // start index is 0...
cmd2.addParam(1, "bcd") ;
count = cmd2.execUpdate() ;
assertEquals(1, count) ;
}