ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Goncharuk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-947) Validate number of query arguments
Date Wed, 27 May 2015 01:04:17 GMT
Alexey Goncharuk created IGNITE-947:
---------------------------------------

             Summary: 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
             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