Skip to content

Commit

Permalink
CLDR-17288 fix issue with previous fix to XPathTable
Browse files Browse the repository at this point in the history
- XPathTable should be called with an autoclose connection only
  • Loading branch information
srl295 committed Jan 9, 2024
1 parent ece7833 commit a292ca8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public TestXPathTable() {
public void TestPutGet() throws SQLException {
if (TestAll.skipIfNoDb()) return;
logln("Testing " + TEST_COUNT + " xpaths");
Connection conn = DBUtils.getInstance().getDBConnection();
Connection conn = DBUtils.getInstance().getAConnection();
XPathTable xpt = XPathTable.createTable(conn);
DBUtils.closeDBConnection(conn);
HashMap<Integer, String> s = new HashMap<>();
Expand Down Expand Up @@ -111,7 +111,7 @@ public void TestRemoveDraftAltProposed() {

public void TestNonDistinguishing() throws SQLException {
if (TestAll.skipIfNoDb()) return;
Connection conn = DBUtils.getInstance().getDBConnection();
Connection conn = DBUtils.getInstance().getAConnection();
XPathTable xpt = XPathTable.createTable(conn);
DBUtils.closeDBConnection(conn);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ public static STFactory createFactory() throws SQLException {
new File(CLDRPaths.BASE_DIRECTORY, "seed/annotations/").getAbsolutePath();

et0 = new ElapsedTimer("setup DB");
Connection conn = DBUtils.getInstance().getDBConnection();
Connection conn = DBUtils.getInstance().getAConnection();
System.err.println(et0.toString());

et0 = new ElapsedTimer("setup Registry");
Expand Down

0 comments on commit a292ca8

Please sign in to comment.