提交 77ab02fe authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix TestPersistentCommonTableExpressions for BIG_DECIMAL_IS_DECIMAL

上级 822f3b06
......@@ -5,6 +5,7 @@
*/
package org.h2.test.db;
import org.h2.engine.SysProperties;
import org.h2.test.TestBase;
/**
......@@ -32,8 +33,14 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT
}
private void testRecursiveTable() throws Exception {
String numericName;
if (SysProperties.BIG_DECIMAL_IS_DECIMAL) {
numericName = "DECIMAL";
} else {
numericName = "NUMERIC";
}
String[] expectedRowData = new String[]{"|meat|null", "|fruit|3", "|veg|2"};
String[] expectedColumnTypes = new String[]{"VARCHAR", "DECIMAL"};
String[] expectedColumnTypes = new String[]{"VARCHAR", numericName};
String[] expectedColumnNames = new String[]{"VAL",
"SUM(SELECT\n" +
" X\n" +
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论