You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Irina Vasilinets (JIRA)" <ji...@apache.org> on 2015/07/23 08:38:04 UTC

[jira] [Commented] (IGNITE-947) Validate number of query arguments

    [ https://issues.apache.org/jira/browse/IGNITE-947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14638292#comment-14638292 ] 

Irina Vasilinets commented on IGNITE-947:
-----------------------------------------

Merged to master.

> Validate number of query arguments
> ----------------------------------
>
>                 Key: IGNITE-947
>                 URL: https://issues.apache.org/jira/browse/IGNITE-947
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>            Reporter: Alexey Goncharuk
>            Assignee: Irina Vasilinets
>             Fix For: sprint-5
>
>
> When number of required arguments is less than number of provided arguments: 
> {code}
> "where name = ? and salary= ?", name
> {code}
> IndexOutOfBoundsException is thrown:
> {code}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
> 	at org.apache.ignite.internal.processors.query.h2.sql.GridSqlQuerySplitter.findParams(GridSqlQuerySplitter.java:291)
> 	at org.apache.ignite.internal.processors.query.h2.sql.GridSqlQuerySplitter.findParams(GridSqlQuerySplitter.java:302)
> 	at org.apache.ignite.internal.processors.query.h2.sql.GridSqlQuerySplitter.findParams(GridSqlQuerySplitter.java:302)
> 	at org.apache.ignite.internal.processors.query.h2.sql.GridSqlQuerySplitter.findParams(GridSqlQuerySplitter.java:261)
> 	at org.apache.ignite.internal.processors.query.h2.sql.GridSqlQuerySplitter.split(GridSqlQuerySplitter.java:218)
> 	at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.queryTwoStep(IgniteH2Indexing.java:850)
> 	at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.queryTwoStep(IgniteH2Indexing.java:803)
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor.queryTwoStep(GridQueryProcessor.java:580)
> 	at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.query(IgniteCacheProxy.java:505)
> 	... 12 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)