Liquibase H2 InsertOrUpdateGeneratorH2 fails if primary key column name contains $ character

Description

If primary key contains dollar character ($), then InsertOrUpdateGeneratorH2 fails with following error:

This issue is related to: https://liquibase.jira.com/browse/CORE-1092
The problem is that special characters are not escaped in replacement. (e.g. using Matcher.quoteReplacement)

getInsertStatement method could be fixed like:

Environment

H2

Status

Reporter

Jan Simon

Components

Fix versions

Affects versions

Priority

Minor
Configure