提交 299c26f5 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 7b301b9e
......@@ -238,7 +238,8 @@ public class TestView extends TestBase {
}
/**
* Make sure that the table constraint is still available when create a view of other table.
* Make sure that the table constraint is still available when create a view
* of other table.
*/
private void testViewConstraintFromColumnExpression() throws SQLException {
deleteDb("view");
......@@ -250,7 +251,8 @@ public class TestView extends TestBase {
stat.execute("insert into t1 values(1)");
stat.execute("create view v1 as select * from t0,t1");
// Check with ColumnExpression
ResultSet rs = stat.executeQuery("select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = 'V1'");
ResultSet rs = stat.executeQuery(
"select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = 'V1'");
assertTrue(rs.next());
assertEquals("ID1", rs.getString("COLUMN_NAME"));
assertEquals("((ID1 % 2) = 0)", rs.getString("CHECK_CONSTRAINT"));
......
......@@ -754,4 +754,4 @@ overwrote though randomize readability datagram rsync mongodb divides crypto
predicted prediction wojtek hops jurczyk cbtree predict vast assumption upside
adjusted lastly sgtatham cleaning gillet prevented
angus bernd macdonald eckenfels granting moreover exponential transferring
dedup
dedup megabyte breadth traversal
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论