ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Semen Boikov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-947) Validate number of query arguments
Date Thu, 28 May 2015 09:17:17 GMT

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

Semen Boikov commented on IGNITE-947:
-------------------------------------

Looks good.

> 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)

Mime
View raw message