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

Igor Sapego edited comment on IGNITE-4597 at 5/11/17 9:27 AM:
--------------------------------------------------------------

[~vinx13], can you also fix C++ Query Example? You can find it at 
{{cpp/examples/query-example/src/query_example.cpp}}. There you can find lines 
like 
{code}
SqlQuery qry(PERSON_TYPE, sql);
//...
qry = SqlQuery(PERSON_TYPE, sql);
{code}
That's where {{ClearArguments()}} call could be used. There are several places 
like that in the example.


was (Author: isapego):
[~vinx13], can you also fix C++ Query Example? You can find it at 
{{cpp/examples/query-example/src/query_example.cpp}}. There you can find lines 
like 
{code}
SqlQuery qry(PERSON_TYPE, sql);
/...
qry = SqlQuery(PERSON_TYPE, sql);
{code}
That's where {{ClearArguments()}} call could be used. There are several places 
like that in the example.

> CPP: Add mechanism to reset arguments for sql queries.
> ------------------------------------------------------
>
>                 Key: IGNITE-4597
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4597
>             Project: Ignite
>          Issue Type: Task
>          Components: platforms
>    Affects Versions: 1.8
>            Reporter: Igor Sapego
>            Assignee: Wuwei Lin
>              Labels: cpp, newbie
>
> Currently, there is method {{AddArgument}} for {{SqlQuery}} and 
> {{SqlFieldsQuery}}, but there is no way to reset arguments for query once 
> they are set. This leads to inconvenience when user want to call the same 
> query with different arguments as they need to re-create exactly the same 
> query but set different arguments for it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to