New Topic: is it possible to insert html tag inside <sql> ?

View: New views
1 Messages — Rating Filter:   Alert me  

New Topic: is it possible to insert html tag inside <sql> ?

by LiquiBase Community Forum :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A new topic, 'is it possible to insert html tag inside <sql> ?', has been made on a board you are watching.

You can see it at
http://liquibase.org/forum/index.php?topic=67.new#new

The text of the topic is shown below:

Hi

I have a problem with liquibase 1.9.3 (with grails) .. it apparently displaying error  when i did migration ( i have no idea the error code .. because liquibase just throws long stack error exception which is unreadable for me .. too fast and i am not able to capture the error )

i did an update to my table like this

    <changeSet author="x" id="AssetTypeX-1">
        <preConditions onFail="CONTINUE">
            <sqlCheck expectedResult="1">select count(*) from asset_type where asset_name = 'Car'</sqlCheck>
        </preConditions>
        <comment>Update Car</comment>
        <sql>update asset_type set asset_name ="Car <br>(which are owned outright)" where asset_name="Car"</sql>
    </changeSet>
look at the <sql> inside the string i put <br/> ... it wont update with liquibase. but when i remove <br/> it worked !!!


so is this bug ?

Unsubscribe to new topics from this board by clicking here: http://liquibase.org/forum/index.php?action=notifyboard;board=1.0

Regards,
The LiquiBase Community Forum Team.
------------------------------------------------------------------------------

_______________________________________________
Liquibase-user mailing list
Liquibase-user@...
https://lists.sourceforge.net/lists/listinfo/liquibase-user