[arquillian-issues] [JBoss JIRA] (ARQ-1444) Oracle does not support query delimiter inside statements

Michel Graciano (JIRA) issues at jboss.org
Tue Jul 15 09:26:37 EDT 2014


    [ https://issues.jboss.org/browse/ARQ-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985189#comment-12985189 ] 

Michel Graciano commented on ARQ-1444:
--------------------------------------

Rafael,
there is a gotcha here. Try add the property sqlDialect at your arquillian.xml as follow:
{code:xml}
<extension qualifier="persistence-script">
        <property name="sqlDialect">oracle</property>
</extension>
{code}
The defualt delimiter is already ; so it is not necessary to define it. I solved a similar issue doing this in my tests.

> Oracle does not support query delimiter inside statements
> ---------------------------------------------------------
>
>                 Key: ARQ-1444
>                 URL: https://issues.jboss.org/browse/ARQ-1444
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Persistence
>    Affects Versions: persistence_1.0.0.Alpha6
>         Environment: Oracle Database.
>            Reporter: Michel Graciano
>            Assignee: Bartosz Majsak
>             Fix For: persistence_1.0.0.Alpha7
>
>
> When we try to use @ApplyScriptBefore and the script file has more than one statement, we use ; as delimiter. The problem is that the delimiter is not removed from the statement before run it, so Oracle database return the following exception:
> Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: invalid character



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the arquillian-issues mailing list