提交 b8f7ce5c authored 作者: noelgrandin@gmail.com's avatar noelgrandin@gmail.com

fix unit test

上级 347791c1
......@@ -406,15 +406,14 @@ public class TestTriggersConstraints extends TestBase implements Trigger {
assertSingleValue(stat, callSeq, 1);
conn.setAutoCommit(false);
if (asSource) {
String triggerClassName = this.getClass().getName() + "." +
TestTriggerAlterTable.class.getSimpleName();
stat.execute(
"create trigger test_upd before insert on test " +
"as $$org.h2.api.Trigger create() " +
"{ return new " + triggerClassName + "(\"seq\"); } $$");
String triggerClassName = this.getClass().getName() + "."
+ TestTriggerAlterTable.class.getSimpleName();
stat.execute("create trigger test_upd before insert on test "
+ "as $$org.h2.api.Trigger create() " + "{ return new "
+ triggerClassName + "(); } $$");
} else {
stat.execute("create trigger test_upd before insert on test call \"" +
TestTriggerAlterTable.class.getName() + "\"");
stat.execute("create trigger test_upd before insert on test call \""
+ TestTriggerAlterTable.class.getName() + "\"");
}
stat.execute("insert into test values(1)");
assertSingleValue(stat, callSeq, 3);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论