[ 
http://jira.codehaus.org/browse/MSQL-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=267204#action_267204
 ] 

Michael Bellomo commented on MSQL-68:
-------------------------------------

This is also an issue for using hints.  Here's an example:

delete /*+ no_index(my_index) */ from my_table where ...

This results in the following:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] ORA-00900: invalid SQL statement


[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: ORA-00900: invalid SQL 
statement

        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: ORA-00900: invalid 
SQL statement

        at org.codehaus.mojo.sql.SqlExecMojo.execute(SqlExecMojo.java:646)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
Caused by: java.sql.SQLException: ORA-00900: invalid SQL statement

        at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
        at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
        at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:113)
        at 
oracle.jdbc.driver.T4CStatement.execute_for_rows(T4CStatement.java:561)
        at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
        at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1552)
        at org.codehaus.mojo.sql.SqlExecMojo.execSQL(SqlExecMojo.java:1011)
        at org.codehaus.mojo.sql.SqlExecMojo.runStatements(SqlExecMojo.java:975)
        at org.codehaus.mojo.sql.SqlExecMojo.access$200(SqlExecMojo.java:66)
        at 
org.codehaus.mojo.sql.SqlExecMojo$Transaction.runTransaction(SqlExecMojo.java:1207)
        at 
org.codehaus.mojo.sql.SqlExecMojo$Transaction.access$100(SqlExecMojo.java:1154)
        at org.codehaus.mojo.sql.SqlExecMojo.execute(SqlExecMojo.java:612)
        ... 19 more


> Create procedure with comment /*   ..   */
> ------------------------------------------
>
>                 Key: MSQL-68
>                 URL: http://jira.codehaus.org/browse/MSQL-68
>             Project: Maven 2.x SQL Plugin
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Oracle 10g DB
>            Reporter: Jochen Stiepel
>
> It is not possible to execute this statement using DELIMITER = '/'.
> {noformat}
> create or replace procedure PR_CLEAR_A
> (
>       i_strType in Varchar2
> )
> is
> /******************************************************************************
>   commmennnnnnnttttttttt
>  
>  ******** procedure comment end 
> ***********************************************/
>       p_strType Varchar2 (50);
>       --
>       cursor cur_schema_objects ( strType varchar2 ) is
>         select object_name from user_objects where object_type = upper( 
> strType );
>       rec_schema_objects cur_schema_objects%rowtype;
>       --
> --
> begin
> --
>   begin
>     if i_strType is null or i_strType = '' then
>       p_strType := 'ALL';
>     else
>       p_strType := upper( i_strType );
>     end if;
>   end;
> end;
> /
> {noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to