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:
parent
64e52022bc
commit
fc7fc47b64
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue