[jira] [Comment Edited] (IGNITE-4597) CPP: Add mechanism to reset arguments for sql queries.

2017-05-11 Thread Igor Sapego (JIRA)

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


[jira] [Comment Edited] (IGNITE-4597) CPP: Add mechanism to reset arguments for sql queries.

2017-05-17 Thread Igor Sapego (JIRA)

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

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

[~vinx13], Sorry I was not reacting for so long - you probably should have 
added comment to your ticket or write to dev list, so we would know that ticket 
is ready for review. We do not have notification when just status of the ticket 
changes. I'm going to run tests now and merge it to master.

Thanks for your contribution!


was (Author: isapego):
[~vinx13], Sorry I have not reacted for so long - you probably should have 
added comment to your ticket or write to dev list, so we would know that ticket 
is ready for review. We do not have notification when just status of the ticket 
changes. I'm going to run tests now and merge it to master.

Thanks for your contribution!

> 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
> Fix For: 2.1
>
>
> 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)