[
https://issues.apache.org/jira/browse/GEODE-3909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16220864#comment-16220864
]
ASF subversion and git services commented on GEODE-3909:
--------------------------------------------------------
Commit 01877ec7685a843076611c53b8d1e94f55a1a525 in geode's branch
refs/heads/develop from [~upthewaterspout]
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=01877ec ]
GEODE-3909: Use varargs for Query.execute
Changed Object[] to Object...
> 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
> 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
(v6.4.14#64029)