Skip to content

Commit

Permalink
bumping up test MySQL version
Browse files Browse the repository at this point in the history
... fixing MySQL test
  • Loading branch information
andrus committed Apr 21, 2024
1 parent fe02071 commit 09615b7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dflib-jdbc/src/test/java/org/dflib/jdbc/connector/tx/TxIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,17 @@ public void run_Rollback_ErrorInMetadata() {
public void run_Rollback_ErrorData() {
adapter.delete("t1");
JdbcConnector connector = adapter.createConnector();
DataFrame df1 = DataFrame.foldByRow("id", "name", "salary")
DataFrame df1 = DataFrame
.foldByRow("id", "name", "salary")
.of(
1L, "n1", 50_000.01,
2L, "n2", 120_000.);

DataFrame df2 = DataFrame.foldByRow("id", "name", "salary")
.of(3L, "n3", "XXXX");

// this String exceeds column max length of 100
String longString = new String(new char[102]).replace('\0', 'X');
DataFrame df2 = DataFrame
.foldByRow("id", "name", "salary")
.of(3L, longString, 50_000.01);

try {
Tx.newTransaction(connector).run(c -> {
Expand Down

0 comments on commit 09615b7

Please sign in to comment.