Fix Java program in 005.regression test.
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 3 Aug 2017 03:41:40 +0000 (12:41 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 3 Aug 2017 05:30:42 +0000 (14:30 +0900)
The program forgot issue commit and always ended up with ABORT.  This
does not affect the test result itself, it would be better to finish
the test with commit, rather than ABORT.

src/test/regression/tests/005.jdbc/PrepareThresholdTest.java

index d12ce5c93740d953ad30152daf729d19db5a181b..43de5556b0f26a39048ea127fef48e50ecb667c2 100644 (file)
@@ -59,6 +59,7 @@ public class PrepareThresholdTest extends PgpoolTest {
 
                        } finally {
                                if (rs != null) rs.close();
+                               connection.commit();
                                if (pstmt != null) pstmt.close();
                        }