提交 eee69fbb authored 作者: Noel Grandin's avatar Noel Grandin

this isn't throwing anymore

not sure why
上级 7647e60d
...@@ -12,7 +12,6 @@ import java.sql.SQLException; ...@@ -12,7 +12,6 @@ import java.sql.SQLException;
import java.sql.Statement; import java.sql.Statement;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashSet; import java.util.HashSet;
import org.h2.api.ErrorCode; import org.h2.api.ErrorCode;
import org.h2.api.Trigger; import org.h2.api.Trigger;
import org.h2.engine.Session; import org.h2.engine.Session;
...@@ -119,8 +118,7 @@ public class TestTriggersConstraints extends TestBase implements Trigger { ...@@ -119,8 +118,7 @@ public class TestTriggersConstraints extends TestBase implements Trigger {
stat.execute("create trigger test_u before update on test " + stat.execute("create trigger test_u before update on test " +
"for each row call \"" + DeleteTrigger.class.getName() + "\""); "for each row call \"" + DeleteTrigger.class.getName() + "\"");
// this threw a NullPointerException // this threw a NullPointerException
assertThrows(ErrorCode.ROW_NOT_FOUND_WHEN_DELETING_1, stat). stat.execute("update test set id = 2");
execute("update test set id = 2");
stat.execute("drop table test"); stat.execute("drop table test");
conn.close(); conn.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论