public void testSingleSourceBatchCommandReferentialIntegrityRollback()
throws Exception {
AbstractQueryTransactionTest userTxn = new AbstractQueryTransactionTest(
"testSingleSourceBatchCommandReferentialIntegrityRollback") {
public void testCase() throws Exception {
ArrayList list = new ArrayList();
for (int i = 200; i < 210; i++) {
list.add("insert into pm1.g1 (e1, e2) values(" + i + ",'"
+ i + "')");
}
// try to rollback, since we are in single batch it must
// rollback
list.add("insert into pm1.g2 (e1, e2) values(9999,'9999')");
executeBatch((String[]) list.toArray(new String[list.size()]));
}
public boolean exceptionExpected() {
return true;
}