提交 a895fbcc authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix typos found by org.h2.build.doc.SpellChecker

上级 f4a652d2
...@@ -18,7 +18,7 @@ import org.h2.test.TestBase; ...@@ -18,7 +18,7 @@ import org.h2.test.TestBase;
public abstract class AbstractBaseForCommonTableExpressions extends TestBase { public abstract class AbstractBaseForCommonTableExpressions extends TestBase {
protected void testRepeatedQueryWithSetup(int maxRetries, String[] expectedRowData, String[] expectedColumnNames, protected void testRepeatedQueryWithSetup(int maxRetries, String[] expectedRowData, String[] expectedColumnNames,
int expectedNumbeOfRows, String setupSQL, String withQuery, int expectedNumberOfRows, String setupSQL, String withQuery,
int closeAndReopenDatabaseConnectionOnIteration, String[] expectedColumnTypes) throws SQLException { int closeAndReopenDatabaseConnectionOnIteration, String[] expectedColumnTypes) throws SQLException {
deleteDb("commonTableExpressionQueries"); deleteDb("commonTableExpressionQueries");
...@@ -47,7 +47,7 @@ public abstract class AbstractBaseForCommonTableExpressions extends TestBase { ...@@ -47,7 +47,7 @@ public abstract class AbstractBaseForCommonTableExpressions extends TestBase {
assertTrue(rs.getMetaData().getColumnLabel(columnIndex) != null); assertTrue(rs.getMetaData().getColumnLabel(columnIndex) != null);
assertEquals(expectedColumnNames[columnIndex - 1], rs.getMetaData().getColumnLabel(columnIndex)); assertEquals(expectedColumnNames[columnIndex - 1], rs.getMetaData().getColumnLabel(columnIndex));
assertEquals( assertEquals(
"wrongly type column " + rs.getMetaData().getColumnLabel(columnIndex) + " on iteration#" "wrong type of column " + rs.getMetaData().getColumnLabel(columnIndex) + " on iteration #"
+ queryRunTries, + queryRunTries,
expectedColumnTypes[columnIndex - 1], rs.getMetaData().getColumnTypeName(columnIndex)); expectedColumnTypes[columnIndex - 1], rs.getMetaData().getColumnTypeName(columnIndex));
} }
...@@ -62,7 +62,7 @@ public abstract class AbstractBaseForCommonTableExpressions extends TestBase { ...@@ -62,7 +62,7 @@ public abstract class AbstractBaseForCommonTableExpressions extends TestBase {
rowNdx++; rowNdx++;
} }
assertEquals(expectedNumbeOfRows, rowNdx); assertEquals(expectedNumberOfRows, rowNdx);
rs.close(); rs.close();
prep.close(); prep.close();
......
...@@ -94,7 +94,7 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT ...@@ -94,7 +94,7 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT
} }
private void testPersistentRecursiveTableInCreateView() throws Exception { private void testPersistentRecursiveTableInCreateView() throws Exception {
String setuoSQL = "--SET TRACE_LEVEL_SYSTEM_OUT 3;\n" String setupSQL = "--SET TRACE_LEVEL_SYSTEM_OUT 3;\n"
+"DROP TABLE IF EXISTS my_tree; \n" +"DROP TABLE IF EXISTS my_tree; \n"
+"DROP VIEW IF EXISTS v_my_tree; \n" +"DROP VIEW IF EXISTS v_my_tree; \n"
+"CREATE TABLE my_tree ( \n" +"CREATE TABLE my_tree ( \n"
...@@ -137,7 +137,7 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT ...@@ -137,7 +137,7 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT
String[] expectedColumnNames = new String[]{"SUB_TREE_ROOT_ID", "TREE_LEVEL", "PARENT_FK", "CHILD_FK"}; String[] expectedColumnNames = new String[]{"SUB_TREE_ROOT_ID", "TREE_LEVEL", "PARENT_FK", "CHILD_FK"};
String[] expectedColumnTypes = new String[]{"INTEGER", "INTEGER", "INTEGER", "INTEGER"}; String[] expectedColumnTypes = new String[]{"INTEGER", "INTEGER", "INTEGER", "INTEGER"};
int expectedNumberOfRows = 11; int expectedNumberOfRows = 11;
testRepeatedQueryWithSetup(maxRetries, expectedRowData, expectedColumnNames, expectedNumberOfRows, setuoSQL, testRepeatedQueryWithSetup(maxRetries, expectedRowData, expectedColumnNames, expectedNumberOfRows, setupSQL,
withQuery, maxRetries - 1, expectedColumnTypes); withQuery, maxRetries - 1, expectedColumnTypes);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论