Skip to content

Commit

Permalink
fix test needed for issue 0004957
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jul 7, 2022
1 parent f163533 commit 37cef0e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -141,7 +141,8 @@ public void exportTestDatabaseSQL() throws Exception {
return;
}
final int EXPECTED_VARCHAR_MAX_COUNT = engine.getDatabasePlatform().getName().equals(DatabaseNamesConstants.SQLITE) ? 318 : 60;
final String EXPECTED_VARCHAR_MAX_STRING = "varchar(" + Integer.MAX_VALUE + ")";
final String EXPECTED_VARCHAR_MAX_STRING = engine.getDatabasePlatform().getName().equals(DatabaseNamesConstants.DERBY) ? "clob"
: "varchar(" + Integer.MAX_VALUE + ")";
final int actualVarcharMaxCount = StringUtils.countMatches(output, EXPECTED_VARCHAR_MAX_STRING);
String msg = String.format("Expected %s, but got %s in the following output %s",
EXPECTED_VARCHAR_MAX_COUNT, actualVarcharMaxCount, output);
Expand Down

0 comments on commit 37cef0e

Please sign in to comment.