Closed ethanmdavidson closed 5 years ago
Might also want to use them on propertyString as well, because some properties can have multiple line values:
changeSet(id: '1551192755372-32', author: 'edavidson (generated)') {
createTable(remarks: 'This is a very long comment:
heres the second line
and heres another line', tableName: 'PAYMENT_PROC_DETAIL') {
Version 2.0.3 of the Groovy DSL has been released with a fix for this issue.
When running the generateChangeLog command on an oracle database, I run into a couple of issues: 1) objects with multiple lines, e.g.
2) objects with double quotes, e.g.
It seems to me that we could solve both these problems by using triple-quoted strings when writing text bodies in the serializer, e.g:
triple-single quotes would be easier here, but could still fail because oracle escapes single-quotes by using two (''), so when a string begins or ends with an escaped single-quote:
the changelog generation would fail. A more robust solution would be to properly escape the text based on the sql dialect, but that's probably more trouble than it's worth. Triple-quoted strings should catch most cases, and it's easy enough to fix the generated changelog manually in the few cases that are missed.
Let me know your thoughts.