Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddharthBITS committed Jan 21, 2025
1 parent 0aa2059 commit 794a8ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/JDBC/src/test/java/com/sqlsamples/TestQueryFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ public void closeConnections() throws SQLException, ClassNotFoundException, Thro
return;
}
try{
System.out.println("VersionCheck : Version : " + majorVersion + "_" + minorVersion + " resetting");
connection_bbl.createStatement().execute("EXEC sys.sp_reset_connection");
}
catch (Exception e) {
Expand All @@ -310,6 +311,7 @@ public void closeConnections() throws SQLException, ClassNotFoundException, Thro
{
if (connection_bbl != null)
{
System.out.println("VersionCheck : Version : " + majorVersion + "_" + minorVersion + " closing");
connection_bbl.close();
}
connection_bbl = null;
Expand All @@ -320,6 +322,7 @@ public void closeConnections() throws SQLException, ClassNotFoundException, Thro
return;
try
{
System.out.println("VersionCheck : Version : " + majorVersion + "_" + minorVersion + " resetting");
connection_bbl.createStatement().execute("EXEC sys.sp_reset_connection");
}
catch (Exception e) {
Expand Down

0 comments on commit 794a8ce

Please sign in to comment.