You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "David Albrecht (JIRA)" <ji...@apache.org> on 2017/01/10 10:15:58 UTC

[jira] [Comment Edited] (IGNITE-4531) Update DML operation not working for @QuerySqlField with name

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

David Albrecht edited comment on IGNITE-4531 at 1/10/17 10:15 AM:
------------------------------------------------------------------

Hi,

I am using -DIGNITE_H2_DEBUG_CONSOLE=true as debug console. 


was (Author: sawfish):
Hi,

I am using -DIGNITE_H2_DEBUG_CONSOLE=true as debug console. Currently I don't have a test.which reproduces the behaviour.

> Update DML operation not working for @QuerySqlField with name
> -------------------------------------------------------------
>
>                 Key: IGNITE-4531
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4531
>             Project: Ignite
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.8
>            Reporter: David Albrecht
>            Priority: Critical
>         Attachments: IgniteOperationCacheTest.java
>
>
> After putting a java class Operation with
> {code}
>     @QuerySqlField(name = "operationNumber", index = true)
>     private String mOperationNumber;
>     @QuerySqlField(index = true)
>     private String mUuid;
> {code}
> in the cache. Via debug console I can see the following fields:
> _val:
> Operation [... ,mUuid=FF42930B6D3242B5A0B9D631E017027E, mOperationNumber = 0010, ...]
> and a column named: OPERATIONNUMBER with value 0010.
> The query
> {code}
> String updateQueryString = "UPDATE Operation set operationNumber =  ? WHERE mUuid =  ?";
> SqlFieldsQuery updateQuery = new SqlFieldsQuery(updateQueryString ).setArgs("SCHEDULED","FF42930B6D3242B5A0B9D631E017027E");
> cache.query(updateQuery);
> {code}
> results in:
> Operation [... ,mUuid=FF42930B6D3242B5A0B9D631E017027E, mOperationNumber = 0010, operationNumber=SCHEDULED, ...]
> and a column named: OPERATIONNUMBER with value 0010.
> The column 'OPERATIONNUMBER' and the field 'mOperationNumber' is not updated!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)