You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Swapnil Bawaskar (JIRA)" <ji...@apache.org> on 2018/02/01 22:52:18 UTC
[jira] [Closed] (GEODE-3909) Query.execute method should use
varargs instead of Object[]
[ https://issues.apache.org/jira/browse/GEODE-3909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Swapnil Bawaskar closed GEODE-3909.
-----------------------------------
> Query.execute method should use varargs instead of Object[]
> -----------------------------------------------------------
>
> Key: GEODE-3909
> URL: https://issues.apache.org/jira/browse/GEODE-3909
> Project: Geode
> Issue Type: Bug
> Components: querying
> Reporter: Dan Smith
> Assignee: Dan Smith
> Priority: Major
> Fix For: 1.4.0
>
>
> Currently in order to execute a query with bind parameters, the user has to manually construct and array:
> {code}
> queryService.newQuery("select * from /region where name=$1").execute(new Object[] {"joe"});
> {code}
> Java supports varags that allow the user to call this same method without having to construct an array themselves:
> {code}
> queryService.newQuery("select * from /region where name=$1").execute("joe");
> {code}
> We just need to change the definition of execute to use Object... instead of Object[].
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)