Skip to content

Commit

Permalink
Extracting version from database V8
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddharthBITS committed Jan 22, 2025
1 parent f53553f commit bb6eaa0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/JDBC/src/test/java/com/sqlsamples/TestQueryFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ public static void setup() throws IOException {

String logFile = testRunDir + timestamp;
configureLogger(logFile, logger);

System.out.println("VersionCheck : Version : " + majorVersion + "_" + minorVersion);

summaryLogger.info("Started test suite. Now running tests...");
}
Expand Down Expand Up @@ -472,10 +474,6 @@ public void TestQueryBatch(String inputFileName) throws SQLException, ClassNotFo
connection_bbl = DriverManager.getConnection(connectionString);
}

summaryLogger.info("RUNNING " + inputFileName);

logger.info("Running " + inputFileName + "...");

// Query against database to find test version
try
{
Expand Down Expand Up @@ -506,8 +504,10 @@ public void TestQueryBatch(String inputFileName) throws SQLException, ClassNotFo
minorVersion = 0;
System.err.println("Error executing query: " + e.getMessage());
}

summaryLogger.info("RUNNING " + inputFileName);

System.out.println("VersionCheck : Version : " + majorVersion + "_" + minorVersion);
logger.info("Running " + inputFileName + "...");

String testFilePath = filePaths.get(inputFileName);

Expand Down

0 comments on commit bb6eaa0

Please sign in to comment.