Hi,
I'm using Lb from the command line up against Oracle 11g on a remote server.
The gist of my problem is, I have lines of sql commented out with "--" at the start but it seems to me Liquibase is ignoring them and trying to execute them as SQL.
If i put stripComments into my liquibase.xml then of course they get loaded fine, but I don't want to strip comments.
my changeset entry is like this
<changeSet id="3" author="jeffm">
<sqlFile path="05-1classoft_ref_values_import-NO-SET-DEFINE-OFF.sql" />
</changeSet>
And the portion of that file in question is:
--Paid
--INSERT INTO REFERENCE_VALUES (REFERENCE_VALUE_ID, CREATED_BY, CREATED_TS, UPDATED_BY, UPDATED_TS,
--CATEGORY, CODE, ENABLED, SORT_ORDER, DEFAULT_REF)
--VALUES (57, 'dataLoad', sysdate, 'dataLoad', sysdate, 'CLAIM_STATUS', 'Paid', 1, 7, 0);
And the error is here
Liquibase update Failed: Migration failed for change set liquibase.xml::3::jeffm:
Reason: liquibase.exception.DatabaseException: Error executing SQL --Paid
--INSERT INTO REFERENCE_VALUES (REFERENCE_VALUE_ID, CREATED_BY, CREATED_TS, UPDATED_BY, UPDATED_TS,
--CATEGORY, CODE, ENABLED, SORT_ORDER, DEFAULT_REF)
--VALUES (57, 'dataLoad', sysdate, 'dataLoad', sysdate, 'CLAIM_STATUS', 'Paid', 1, 7, 0): Invalid SQL type: sqlKind = UNINITIALIZED
Shouldn't all of these just be ignored outright by liquibase?
Jeff.