Skip to content

Commit

Permalink
HHH-19097 Implemented MySQLLegacyDialect#stripsTrailingSpacesFromChar
Browse files Browse the repository at this point in the history
  • Loading branch information
Selaron authored and beikov committed Feb 17, 2025
1 parent 05d44ea commit a61da10
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 a61da10

Please sign in to comment.