Add more type name alias mappings

1. MySQL returns `int` even `integer` is specified
2. H2 returns `character large object` and `binary large object` even `clob` and `blob` is specified
This commit is contained in:
Yanming Zhou 2024-04-11 19:39:44 +08:00 committed by Gavin King
parent 64e52022bc
commit fc7fc47b64
1 changed files with 6 additions and 0 deletions

View File

@ -248,12 +248,18 @@ class ColumnDefinitions {
else {
final String lowerCaseTypName = typeName.toLowerCase(Locale.ROOT);
switch (lowerCaseTypName) {
case "int":
return "integer";
case "character":
return "char";
case "character varying":
return "varchar";
case "binary varying":
return "varbinary";
case "character large object":
return "clob";
case "binary large object":
return "blob";
case "interval second":
return "interval";
default: