Skip to content

Commit

Permalink
Merge pull request #2293 from liquibase/mysql_double_additional_info
Browse files Browse the repository at this point in the history
Mysql: Support additional information "double" datatypes
  • Loading branch information
nvoxland committed Jan 10, 2022
2 parents 61da97e + 02c5be2 commit 491eead
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)) {
return new DatabaseDataType("DOUBLE");
Expand Down

0 comments on commit 491eead

Please sign in to comment.