提交 03474320 authored 作者: Noel Grandin's avatar Noel Grandin

formatting, changelog entry

上级 0622d70e
......@@ -21,6 +21,8 @@ Change Log
<h2>Next Version (unreleased)</h2>
<ul>
<li>Pull request #165: Fix compatibility postgresql function string_agg
</li>
<li>Pull request #163: improved performance when not using the default timezone.
</li>
<li>Local temporary tables with many rows did not work correctly due to automatic analyze.
......
......@@ -4,13 +4,11 @@ import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.h2.test.TestBase;
/**
* Test for check compatibility with posgresql function string_agg()
*
* */
* Test for check compatibility with PostgreSQL function string_agg()
*/
public class TestStringAggCompatibility extends TestBase {
public static final String STRING_AGG_DB = "stringAgg";
......@@ -29,10 +27,6 @@ public class TestStringAggCompatibility extends TestBase {
prepareDb();
testWhenOrderByMissing();
testWithOrderBy();
}
......@@ -51,7 +45,6 @@ public class TestStringAggCompatibility extends TestBase {
assertEquals("1, 2, 3", result.getString(1));
}
private ResultSet query(String q) throws SQLException {
PreparedStatement st = conn.prepareStatement(q);
......@@ -61,10 +54,7 @@ public class TestStringAggCompatibility extends TestBase {
}
private void prepareDb() throws SQLException {
exec("create table stringAgg(\n" +
" a int not null,\n" +
" b varchar(50) not null\n" +
");");
exec("create table stringAgg(\n" + " a int not null,\n" + " b varchar(50) not null\n" + ");");
exec("insert into stringAgg values(1, '1')");
exec("insert into stringAgg values(1, '2')");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论