Skip to content

Commit

Permalink
Implemented MySQLLegacyDialect#stripsTrailingSpacesFromChar to fix HH…
Browse files Browse the repository at this point in the history
…H-19097
  • Loading branch information
Selaron committed Feb 17, 2025
1 parent 05d44ea commit 21b7bd4
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,16 @@ protected String columnType(int sqlTypeCode) {
}
}

/**
* MySQL strips any trailing space character from a
* value stored in a column of type {@code char(n)}.
* @return {@code true}
*/
@Override
public boolean stripsTrailingSpacesFromChar() {
return true;
}

@Override
public boolean useMaterializedLobWhenCapacityExceeded() {
// MySQL has no real concept of LOBs, so we can just use longtext/longblob with the materialized JDBC APIs
Expand Down

0 comments on commit 21b7bd4

Please sign in to comment.