Skip to content

Commit

Permalink
0004980: MySQL 8 char data type space right trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed May 6, 2021
1 parent f1e99e3 commit dc61967
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -429,6 +429,8 @@ protected Object getObjectValue(String value, Column column, BinaryEncoding enco
// single-byte character set or field defined as number of bytes
objectValue = charValue + StringUtils.repeat(" ", column.getCharOctetLength() - value.getBytes().length);
}
} else if (getDdlBuilder().getDatabaseInfo().isCharColumnSpaceTrimmed()) {
objectValue = StringUtils.stripEnd(charValue, " ");
}
} else if (type == Types.BIGINT) {
objectValue = parseBigInteger(value);
Expand Down

0 comments on commit dc61967

Please sign in to comment.