# Problem with Custom SQL

**URL:** https://forum.liquibase.org/t/problem-with-custom-sql/708
**Category:** General Discussion
**Created:** [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708 "2010-08-12T19:19:00Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![alexis\_lb](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@alexis\_lb](https://forum.liquibase.org/u/alexis_lb)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/1 "2010-08-12T19:19:00Z")

</div>

I know… me again&nbsp; :), but I’m dealing with this thing and I can’t make it work, but it shoud drop the materialized view if it exists:

 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BEGIN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXECUTE IMMEDIATE 'DROP MATERIALIZED VIEW MY\_MVIEW'; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXCEPTION &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHEN OTHERS THEN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF SQLCODE != -12003 THEN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RAISE; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END IF; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END; &nbsp; &nbsp; &nbsp; &nbsp; 

&nbsp; &nbsp; &nbsp; &nbsp;   
&nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp;   
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DROP MATERIALIZED VIEW MY\_VIEW  
&nbsp; &nbsp; &nbsp; &nbsp;   
&nbsp; &nbsp;

basically this part gives me always an error and I don’t know why, because if I run it normaly it works well:

BEGIN  
&nbsp; EXECUTE IMMEDIATE ‘DROP MATERIALIZED VIEW MY\_MVIEW’;  
EXCEPTION  
&nbsp; WHEN OTHERS THEN  
&nbsp; &nbsp; IF SQLCODE != -12003 THEN  
&nbsp; &nbsp; &nbsp; RAISE;  
&nbsp; &nbsp; END IF;  
END;

is similar to the example given in the sql custom liquibase manual

Thanks,  
Alexis.

---

<div class="post-metadata">

### Author: ![alexis\_lb](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@alexis\_lb](https://forum.liquibase.org/u/alexis_lb)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/2 "2010-08-12T19:19:00Z")

</div>

This simple statement also fails:

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BEGIN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dbms\_mview.refresh('MY\_MVIEW'); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 

So it seems that anything between BEGIN END fails&nbsp; ☹

---

<div class="post-metadata">

### Author: ![alexis\_lb](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@alexis\_lb](https://forum.liquibase.org/u/alexis_lb)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/3 "2010-08-12T19:19:00Z")

</div>

Well with createProcedure it works, but I like the more&nbsp; 😉

 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BEGIN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dbms\_mview.refresh('MY\_MVIEW'); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

---

<div class="post-metadata">

### Author: ![taranenko](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@taranenko](https://forum.liquibase.org/u/taranenko)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/4 "2010-08-12T19:19:00Z")

</div>

> _Originally posted by: Alexis_  
> This simple statement also fails:
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BEGIN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dbms\_mview.refresh('MY\_MVIEW'); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
> 
> So it seems that anything between BEGIN END fails&nbsp; ☹

Have you with attributes endDelimiter etc. tested?

---

<div class="post-metadata">

### Author: ![alexis\_lb](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@alexis\_lb](https://forum.liquibase.org/u/alexis_lb)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/5 "2010-08-12T19:19:00Z")

</div>

Yes everything… I also added the / at the end with that delimiter and so on… and nothing… I’ll try again today.

---

<div class="post-metadata">

### Author: ![alexis\_lb](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@alexis\_lb](https://forum.liquibase.org/u/alexis_lb)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/6 "2010-08-12T19:19:00Z")

</div>

Actually… I have another RC6 build, I think revision 1680 which works perfectly with this:

 BEGIN &nbsp; EXECUTE IMMEDIATE 'DROP MATERIALIZED VIEW MY\_MVIEW'; EXCEPTION &nbsp; WHEN OTHERS THEN &nbsp; &nbsp; IF SQLCODE != -12003 THEN &nbsp; &nbsp; &nbsp; RAISE; &nbsp; &nbsp; END IF; END;

---

<div class="post-metadata">

### Author: ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/7 "2010-08-12T19:19:00Z")

</div>

So, it is working for you now? Or is there still a problem?

Nathan

---

<div class="post-metadata">

### Author: ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/8 "2010-08-12T19:19:00Z")

</div>

For the record, is just with a couple defaults that makes it work better (mainly the end delimiter setting).&nbsp; Some people also like the fact that it at least somewhat describes what is happening in the change than the generic

Nathan

---

<div class="post-metadata">

### Author: ![alexis\_lb](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@alexis\_lb](https://forum.liquibase.org/u/alexis_lb)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/9 "2010-08-12T19:19:00Z")

</div>

hi Nathan,

It is still failing, what I meant is that it was working before and now it fails, here is an example:

 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BEGIN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXECUTE IMMEDIATE 'DROP MATERIALIZED VIEW MY\_MVIEW'; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXCEPTION &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WHEN OTHERS THEN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF SQLCODE != -12003 THEN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RAISE; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END IF; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CREATE &nbsp;MATERIALIZED VIEW MY\_MVIEW &nbsp; &nbsp; &nbsp; &nbsp;BUILD DEFERRED &nbsp; &nbsp; &nbsp; &nbsp;REFRESH FORCE ON DEMAND &nbsp; &nbsp; &nbsp; &nbsp;AS &nbsp; &nbsp; &nbsp; &nbsp;SELECT \* FROM test\_table; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BEGIN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dbms\_mview.refresh('MY\_MVIEW'); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DROP MATERIALIZED VIEW MY\_MVIEW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

The first sql should work but it fails, while the third works but because of the createProcedure. So I assume it is something wrong in the custom sql tag

---

<div class="post-metadata">

### Author: ![alwyn\_schoeman](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@alwyn\_schoeman](https://forum.liquibase.org/u/alwyn_schoeman)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/10 "2010-08-12T19:19:00Z")

</div>

As far as I understand the createProcedure has splitStatements=true as opposed to raw sql.&nbsp; Would it make a difference if you have splitStatements=true in your tag?

Wild guess.

---

<div class="post-metadata">

### Author: ![alexis\_lb](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@alexis\_lb](https://forum.liquibase.org/u/alexis_lb)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/11 "2010-08-12T19:19:00Z")

</div>

hi Alwyn:

Yes it fails no matter what option I put:  
test:  
&nbsp; &nbsp; [echo] -----------------------------------  
&nbsp; &nbsp; [echo] Testing scripts&nbsp; &nbsp; &nbsp; &nbsp;  
&nbsp; &nbsp; [echo] -----------------------------------  
&nbsp; &nbsp; [exec] Aug 17, 2010 11:13:05 AM liquibase.logging.jvm.JavaUtilLogger info  
&nbsp; &nbsp; [exec] INFO: Successfully acquired change log lock  
&nbsp; &nbsp; [exec] Aug 17, 2010 11:13:05 AM liquibase.logging.jvm.JavaUtilLogger info  
&nbsp; &nbsp; [exec] INFO: Reading from DATABASECHANGELOG  
&nbsp; &nbsp; [exec] Aug 17, 2010 11:13:06 AM liquibase.logging.jvm.JavaUtilLogger info  
&nbsp; &nbsp; [exec] INFO: Reading from DATABASECHANGELOG  
&nbsp; &nbsp; [exec] Aug 17, 2010 11:13:06 AM liquibase.logging.jvm.JavaUtilLogger info  
&nbsp; &nbsp; [exec] INFO: Successfully released change log lock  
&nbsp; &nbsp; [exec] Liquibase Update Failed: Error executing SQL BEGIN  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXECUTE IMMEDIATE ‘DROP MATERIALIZED VIEW MY\_MVIEW’.&nbsp; For more information, use the --logLevel flag)  
&nbsp; &nbsp; [exec] Aug 17, 2010 11:13:06 AM liquibase.logging.jvm.JavaUtilLogger info  
&nbsp; &nbsp; [exec] INFO: Error executing SQL BEGIN  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXECUTE IMMEDIATE ‘DROP MATERIALIZED VIEW MY\_MVIEW’  
&nbsp; &nbsp; [exec] liquibase.exception.MigrationFailedException: Migration failed for change set test.xml::test-custom-sql::alexis:  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; &nbsp; Reason: liquibase.exception.DatabaseException: Error executing SQL BEGIN  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXECUTE IMMEDIATE ‘DROP MATERIALIZED VIEW MY\_MVIEW’:  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Caused By: Error executing SQL BEGIN  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXECUTE IMMEDIATE ‘DROP MATERIALIZED VIEW MY\_MVIEW’:  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Caused By: ORA-06550: line 2, column 65:  
&nbsp; &nbsp; [exec] PLS-00103: Encountered the symbol “end-of-file” when expecting one of the following:  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; \* & = - + ; \< / \> at in is mod remainder not rem return  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; returning \<an exponent (**)\> \<\> or != or ~= \>= \<= \<\> and or  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; like like2 like4 likec between into using || multiset bulk  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; member submultiset  
&nbsp; &nbsp; [exec] at liquibase.changelog.ChangeSet.execute(ChangeSet.java:286)  
&nbsp; &nbsp; [exec] at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)  
&nbsp; &nbsp; [exec] at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)  
&nbsp; &nbsp; [exec] at liquibase.Liquibase.update(Liquibase.java:108)  
&nbsp; &nbsp; [exec] at liquibase.integration.commandline.Main.doMigration(Main.java:676)  
&nbsp; &nbsp; [exec] at liquibase.integration.commandline.Main.main(Main.java:110)  
&nbsp; &nbsp; [exec] Caused by: liquibase.exception.DatabaseException: Error executing SQL BEGIN  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXECUTE IMMEDIATE ‘DROP MATERIALIZED VIEW MY\_MVIEW’  
&nbsp; &nbsp; [exec] at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)  
&nbsp; &nbsp; [exec] at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:97)  
&nbsp; &nbsp; [exec] at liquibase.database.AbstractDatabase.execute(AbstractDatabase.java:982)  
&nbsp; &nbsp; [exec] at liquibase.database.AbstractDatabase.executeStatements(AbstractDatabase.java:969)  
&nbsp; &nbsp; [exec] at liquibase.changelog.ChangeSet.execute(ChangeSet.java:257)  
&nbsp; &nbsp; [exec] … 5 more  
&nbsp; &nbsp; [exec] Caused by: java.sql.SQLException: ORA-06550: line 2, column 65:  
&nbsp; &nbsp; [exec] PLS-00103: Encountered the symbol “end-of-file” when expecting one of the following:  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; \* & = - + ; \< / \> at in is mod remainder not rem return  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; returning \<an exponent (**)\> \<\> or != or ~= \>= \<= \<\> and or  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; like like2 like4 likec between into using || multiset bulk  
&nbsp; &nbsp; [exec]&nbsp; &nbsp; member submultiset  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:936)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1770)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1739)  
&nbsp; &nbsp; [exec] at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:298)  
&nbsp; &nbsp; [exec] at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:88)  
&nbsp; &nbsp; [exec] at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)  
&nbsp; &nbsp; [exec] … 9 more

---

<div class="post-metadata">

### Author: ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/12 "2010-08-12T19:19:00Z")

</div>

I’m going to be on on vacation until Aug 29th, so I’ll get back to you after then.&nbsp; Sorry I wasn’t able to give you a good answer beforehand.&nbsp; I looked into it a bit, but not enough to get a good answer.&nbsp; Ended up with too much going on…

Nathan

---

<div class="post-metadata">

### Author: ![alexis\_lb](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@alexis\_lb](https://forum.liquibase.org/u/alexis_lb)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/13 "2010-08-12T19:19:00Z")

</div>

No problem Nathan, I did a local change to my copy in order to make it run, basically I added some logic to support splitStatemetnts=false. This is just temporary until your fix is ready

---

<div class="post-metadata">

### Author: ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/14 "2010-08-12T19:19:00Z")

</div>

The splitStatemetns should be working now.&nbsp; Could you test it with a build from trunk or RC6 when it is out?

Nathan

---

<div class="post-metadata">

### Author: ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/15 "2010-08-12T19:19:00Z")

</div>

Hi Nathan,

I’m running a changeLogFile from maven using the version 2.0.5.&nbsp;

Here is my changeSet

1. 
2. 
3. &nbsp; &nbsp; &nbsp; &nbsp; 
4. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
5. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
6. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
7. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
8. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
9. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
10. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
11. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
12. &nbsp; &nbsp; &nbsp; &nbsp; 
13. &nbsp; &nbsp; 

Here is what I get&nbsp;
1. 
2. SEVERE 17/05/12 1:26 PM:liquibase: Change Set /local/changelog.xml::insertdata-1::Maven failed. &nbsp;Error: Error executing SQL DECLARE
3. \<span class="Apple-tab-span" was ignored.

I'm using Oracle thin driver ojdbc6-11.2.0.3

Do you know what is the problem?

Thanks

---

<div class="post-metadata">

### Author: ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)
#### Post date: [August 12, 2010, 7:19pm UTC](https://forum.liquibase.org/t/problem-with-custom-sql/708/16 "2010-08-12T19:19:00Z")

</div>

It appears to be an issue introduced in 2.0.5 [https://liquibase.jira.com/browse/CORE-1170](https://liquibase.jira.com/browse/CORE-1170)

2.0.4 should work correctly for you.

Nathan
