There's something else going on here. In 3.0, when doing:
- JAXBElement elem = new JAXBElement(new QName("http://www.liquibase.org/xml/ns/dbchangelog","comment"),
- String.class, "NOTE: " + comment);
Then the generated output is "-- NOTE: Some comment".
For some databases, there's a single space between "--" and "NOTE", for other databases there are two spaces. This makes it a bit harder to filter out unwanted comments (we only keep our own comments, that is, those starting with "-- NOTE")
By the way, can I simply ask Liquibase not to add its own comments, header included?