additionalInformation lost in DataTypeFactory.fromDescription()

Description

There is a bug in DataTypeFactory.fromDescription() causing the property "additionalInformation" of the resulting LiquibaseDataType to be always null, if the argument is containing a paranthesis '('.

For example, "VARCHAR(50) COLLATE Latin1_General_BIN".

The errorneous lines are at the beginning of the method:

That results into "VARCHAR"

Correct would be:

That results into "VARCHAR COLLATE Latin1_General_BIN".

Later this is correctly getting reduced to "VARCHAR" with additional information "COLLATE Latin1_General_BIN":

Environment

any

Reporter

Jörg Waßmer

Components

Fix versions

Affects versions

Priority

Critical
Configure