diff with uppercase reference database name

Description

PostgresDatabase.correctObjectName turns my catalog name "AB3CX" into lowercase which leads JdbcDatabaseSnapshot$CachingDatabaseMetaData.createSql() to select with the lowercase "constraint_catalog=ab3cx" which doesnt find the rows

the problem seems to be a bug in DiffCommand.createTargetSnapshot:

it changes the quotingStrategy of the referenceDatabase instead of the target database

which leads to a diff.sql full of already existing unique constraints etc.

Environment

url=${db.url}
username=${db.user}
password=${db.pass}
changeLogFile=src/db.changelog.xml
referenceUrl=hibernate:spring:by2?dialect=org.hibernate.dialect.PostgreSQLDialect
diffChangeLogFile=diff.xml

Postgres 9.3 Server with a uppercase DB name

Status

Assignee

Unassigned

Reporter

Peter Großmann

Labels

None

Components

Fix versions

Affects versions

Priority

Critical
Configure