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 { else {
final String lowerCaseTypName = typeName.toLowerCase(Locale.ROOT); final String lowerCaseTypName = typeName.toLowerCase(Locale.ROOT);
switch (lowerCaseTypName) { switch (lowerCaseTypName) {
case "int":
return "integer";
case "character": case "character":
return "char"; return "char";
case "character varying": case "character varying":
return "varchar"; return "varchar";
case "binary varying": case "binary varying":
return "varbinary"; return "varbinary";
case "character large object":
return "clob";
case "binary large object":
return "blob";
case "interval second": case "interval second":
return "interval"; return "interval";
default: default: