Skip to content

Commit

Permalink
Fix typo in length that caused test to fail when using native client,…
Browse files Browse the repository at this point in the history
… but not on pure Java
  • Loading branch information
mrotteveel committed May 18, 2024
1 parent 82ec6f4 commit f306cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/org/firebirdsql/jdbc/FBStatementTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1027,8 +1027,8 @@ void updateCountOfExecuteProcedure() throws Exception {
@Test
void statementTextLongerThan64KB() throws Exception {
assumeTrue(getDefaultSupportInfo().supportsStatementTextLongerThan64K(), "requires long statement text support");
// For some reason the native implementation can't handle exactly 32KB values, but it can handle 32KB - 1
String text32kb = "X".repeat(32 * 2024 - 1);
// For some reason the native implementation can't handle exactly 32KB values, but it can handle 32KB - 1 (this may be version dependent)
String text32kb = "X".repeat(32 * 1024 - 1);

try (Statement stmt = con.createStatement()) {
ResultSet rs = stmt.executeQuery(
Expand Down

0 comments on commit f306cc3

Please sign in to comment.