提交 0fb1169f authored 作者: Thomas Mueller's avatar Thomas Mueller

Don't use error code numbers, use the constant instead.

上级 d44b29ea
...@@ -200,7 +200,7 @@ public class TestView extends TestBase { ...@@ -200,7 +200,7 @@ public class TestView extends TestBase {
Statement s = conn.createStatement(); Statement s = conn.createStatement();
s.execute("create table t0(id int primary key)"); s.execute("create table t0(id int primary key)");
s.execute("create view t1 as select * from t0"); s.execute("create view t1 as select * from t0");
assertThrows(50100, s).execute( assertThrows(ErrorCode.FEATURE_NOT_SUPPORTED_1, s).execute(
"create table t2(id int primary key, col1 int not null, foreign key (col1) references t1(id))"); "create table t2(id int primary key, col1 int not null, foreign key (col1) references t1(id))");
conn.close(); conn.close();
deleteDb("view"); deleteDb("view");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论