Skip to content

Commit

Permalink
Mysql: Support additional information like "unsigned" in double datat…
Browse files Browse the repository at this point in the history
…ypes
  • Loading branch information
nvoxland committed Dec 22, 2021
1 parent 83535ee commit 02c5be2
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -15,11 +15,15 @@ public DatabaseDataType toDatabaseDataType(Database database) {
return new DatabaseDataType(database.escapeDataTypeName("float"), 53);
}
if (database instanceof MySQLDatabase) {
DatabaseDataType datatype;
if ((getParameters() != null) && (getParameters().length > 1)) {
return new DatabaseDataType("DOUBLE", getParameters());
datatype = new DatabaseDataType("DOUBLE", getParameters());
} else {
return new DatabaseDataType("DOUBLE");
datatype = new DatabaseDataType("DOUBLE");
}

datatype.addAdditionalInformation(getAdditionalInformation());
return datatype;
}
if ((database instanceof AbstractDb2Database) || (database instanceof DerbyDatabase) || (database instanceof
HsqlDatabase)) {
Expand Down

0 comments on commit 02c5be2

Please sign in to comment.