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

Formatting

上级 15d42a37
...@@ -890,9 +890,9 @@ public class TestSpatial extends TestBase { ...@@ -890,9 +890,9 @@ public class TestSpatial extends TestBase {
try { try {
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
stat.execute("drop table if exists pt_cloud;"); stat.execute("drop table if exists pt_cloud;");
stat.execute("CREATE TABLE PT_CLOUD(id serial, the_geom geometry) AS" + stat.execute("CREATE TABLE PT_CLOUD(id serial, the_geom geometry) AS " +
" SELECT null, CONCAT('POINT(',A.X,' ',B.X,')')::geometry the_geom " + "SELECT null, CONCAT('POINT(',A.X,' ',B.X,')')::geometry the_geom " +
"from system_range(0,120) A,system_range(0,10) B;"); "from system_range(0,120) A,system_range(0,10) B;");
stat.execute("create spatial index on pt_cloud(the_geom);"); stat.execute("create spatial index on pt_cloud(the_geom);");
ResultSet rs = stat.executeQuery( ResultSet rs = stat.executeQuery(
"explain select * from PT_CLOUD " + "explain select * from PT_CLOUD " +
...@@ -910,7 +910,7 @@ public class TestSpatial extends TestBase { ...@@ -910,7 +910,7 @@ public class TestSpatial extends TestBase {
} }
deleteDb("spatial"); deleteDb("spatial");
} }
private void testNullableGeometry() throws SQLException { private void testNullableGeometry() throws SQLException {
deleteDb("spatial"); deleteDb("spatial");
Connection conn = getConnection(url); Connection conn = getConnection(url);
......
...@@ -294,7 +294,9 @@ public class TestTempTables extends TestBase { ...@@ -294,7 +294,9 @@ public class TestTempTables extends TestBase {
executeQuery("select * from test_temp"); executeQuery("select * from test_temp");
} }
/** There was a bug where creating lots of tables would overflow the transaction table in the MVStore /**
* There was a bug where creating lots of tables would overflow the
* transaction table in the MVStore
*/ */
private void testLotsOfTables() throws SQLException { private void testLotsOfTables() throws SQLException {
deleteDb("tempTables"); deleteDb("tempTables");
......
...@@ -66,7 +66,7 @@ public class TestConcurrent extends TestMVStore { ...@@ -66,7 +66,7 @@ public class TestConcurrent extends TestMVStore {
testConcurrentWrite(); testConcurrentWrite();
testConcurrentRead(); testConcurrentRead();
} }
private void testInterruptReopen() throws Exception { private void testInterruptReopen() throws Exception {
String fileName = "retry:nio:" + getBaseDir() + "/testInterruptReopen.h3"; String fileName = "retry:nio:" + getBaseDir() + "/testInterruptReopen.h3";
FileUtils.delete(fileName); FileUtils.delete(fileName);
......
...@@ -87,7 +87,7 @@ public class TestMVTableEngine extends TestBase { ...@@ -87,7 +87,7 @@ public class TestMVTableEngine extends TestBase {
testLocking(); testLocking();
testSimple(); testSimple();
} }
private void testLobReuse() throws Exception { private void testLobReuse() throws Exception {
deleteDb("testLobReuse"); deleteDb("testLobReuse");
Connection conn = getConnection("testLobReuse"); Connection conn = getConnection("testLobReuse");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论