Skip to content

Commit

Permalink
Update FileComparator.java
Browse files Browse the repository at this point in the history
Fix problem with java.lang.Exception: java.sql.SQLFeatureNotSupportedException: ResultSet type 1004 is not supported. on Snowflake database.
  • Loading branch information
pniewiadowski authored Mar 3, 2021
1 parent c083962 commit 9e4529f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public TestResults getTestResults(TestParams testParams, Connection conn, File f
File diffFileName = getNewFileBasedOnTestConfigFile(testParams.getTestConfigFile(), "_diff.csv");
try {
Sql sql = compare.getSqls().get(0);
stmt = conn.prepareStatement(sql.getSql(), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
stmt = conn.prepareStatement(sql.getSql(), ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
savedTimes1.startMeasure("Query " + sql.getDatasourceName());
ResultSet rs = stmt.executeQuery();
savedTimes1.stopMeasure();
Expand Down

0 comments on commit 9e4529f

Please sign in to comment.