Skip to content

Commit

Permalink
Extracting version from database V13
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddharthBITS committed Jan 22, 2025
1 parent b6dcac1 commit 5fb2e45
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/JDBC/src/test/java/com/sqlsamples/TestQueryFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ public static void setup() throws IOException {
{
majorVersion = 0;
minorVersion = 0;
System.out.println("Error executing query: " + e.getMessage());
System.err.println("Error executing query: " + e.getMessage());
}

Expand All @@ -335,7 +336,7 @@ public void closeConnections() throws SQLException, ClassNotFoundException, Thro
}
try
{
System.out.println("VersionCloseCheck : Version : " + majorVersion + "_" + minorVersion + " RESET");
System.out.println("VersionCloseCheck : Version : " + majorVersion + "_" + minorVersion + " RESET isUpgradeTestMode :" + isUpgradeTestMode ? "YES" : "NO" + " allowConnectionReset " + allowConnectionReset ? "YES" : "NO");
connection_bbl.createStatement().execute("EXEC sys.sp_reset_connection");
}
catch(Exception e)
Expand All @@ -348,7 +349,7 @@ public void closeConnections() throws SQLException, ClassNotFoundException, Thro
{
if (connection_bbl != null)
{
System.out.println("VersionCloseCheck : Version : " + majorVersion + "_" + minorVersion + " CLOSE");
SSystem.out.println("VersionCloseCheck : Version : " + majorVersion + "_" + minorVersion + " CLOSE isUpgradeTestMode :" + isUpgradeTestMode ? "YES" : "NO" + " allowConnectionReset " + allowConnectionReset ? "YES" : "NO");
connection_bbl.close();
}
connection_bbl = null;
Expand All @@ -363,7 +364,7 @@ public void closeConnections() throws SQLException, ClassNotFoundException, Thro
}
try
{
System.out.println("VersionCloseCheck : Version : " + majorVersion + "_" + minorVersion + " RESET");
System.out.println("VersionCloseCheck : Version : " + majorVersion + "_" + minorVersion + " RESET isUpgradeTestMode :" + isUpgradeTestMode ? "YES" : "NO" + " allowConnectionReset " + allowConnectionReset ? "YES" : "NO");
connection_bbl.createStatement().execute("EXEC sys.sp_reset_connection");
}
catch (Exception e)
Expand Down

0 comments on commit 5fb2e45

Please sign in to comment.