Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : sqlFile tag not expanding placeholders

$
0
0
Hi,

With version 3.0.8, it tried to replace : 

  1. <property name="prm.expl" value="GINKO"/>
    <property name="prm.cdv" value="CVI"/>
    <property name="prm.host" value="http://localhost:8080/ginko"/>

    <changeSet author="asc" id="xxx" context="dev" >
    <sql endDelimiter="##">
    BEGIN
    PKG_PARAMETRE.INSERER_PRM_POUR_CDV( 'URL_APPLICATION', '${prm.expl}', '${prm.cdv}', 'str', '${prm.host}' );
    END;
    ##
    </sql>
    </changeSet>

(which works)

with 

  1. <property name="prm.expl" value="GINKO"/>
    <property name="prm.cdv" value="CVI"/>
    <property name="prm.host" value="http://localhost:8080/ginko"/>

    <changeSet author="asc" id="xxx" context="dev" >
    <sqlFile relativeToChangelogFile="true" encoding="utf8" path="params.sql"  endDelimiter="##" />
    </changeSet>
( params.sql contains the same data as the previous <sql> tag)


It says to me : 
Liquibase update Failed: Migration failed for change set V1.008/Ginko/dev.xml::Parametrage Ginko - DEV::asc:
     Reason: liquibase.exception.DatabaseException: Error executing SQL BEGIN
        PKG_PARAMETRE.INSERER_PRM_POUR_CDV( 'URL_APPLICATION', '${prm.expl}', '${prm.cdv}', 'str', '${prm.host}' );
END;: ORA-01403: aucune donnee trouvee 

It seems for me that the params were not subtituted.

With looking at the bug tracker, I thougt the problem was solved in v3.0.8.
Is there something I'm doing wrong ?



Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>