ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-4531) Update DML operation not working for @QuerySqlField with name
Date Tue, 10 Jan 2017 20:18:59 GMT

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

ASF GitHub Bot commented on IGNITE-4531:
----------------------------------------

GitHub user alexpaschenko opened a pull request:

    https://github.com/apache/ignite/pull/1419

    IGNITE-4531 Use correct property name in BinaryProperty.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gridgain/apache-ignite ignite-4531

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/1419.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1419
    
----
commit e930dfa54112a5374ac4acd6c6ac88510fa9d3e9
Author: Alexander Paschenko <alexander.a.paschenko@gmail.com>
Date:   2017-01-10T20:12:58Z

    IGNITE-4531 Use correct property name in BinaryProperty.

----


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

Mime
View raw message