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

improve inner method name

上级 6b50d0da
...@@ -359,7 +359,7 @@ public class TestTriggersConstraints extends TestBase implements Trigger { ...@@ -359,7 +359,7 @@ public class TestTriggersConstraints extends TestBase implements Trigger {
/** /**
* A test trigger implementation. * A test trigger implementation.
*/ */
public static class Test implements Trigger { public static class TestTriggerAlterTable implements Trigger {
@Override @Override
public void fire(Connection conn, Object[] oldRow, Object[] newRow) public void fire(Connection conn, Object[] oldRow, Object[] newRow)
...@@ -394,7 +394,7 @@ public class TestTriggersConstraints extends TestBase implements Trigger { ...@@ -394,7 +394,7 @@ public class TestTriggersConstraints extends TestBase implements Trigger {
assertSingleValue(stat, "call seq.nextval", 1); assertSingleValue(stat, "call seq.nextval", 1);
conn.setAutoCommit(false); conn.setAutoCommit(false);
stat.execute("create trigger test_upd before insert on test call \"" + stat.execute("create trigger test_upd before insert on test call \"" +
Test.class.getName() + "\""); TestTriggerAlterTable.class.getName() + "\"");
stat.execute("insert into test values(1)"); stat.execute("insert into test values(1)");
assertSingleValue(stat, "call seq.nextval", 3); assertSingleValue(stat, "call seq.nextval", 3);
stat.execute("alter table test add column name varchar"); stat.execute("alter table test add column name varchar");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论