You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maksim Zhuravkov (Jira)" <ji...@apache.org> on 2023/10/16 14:17:00 UTC

[jira] [Assigned] (IGNITE-20600) Sql. Updating primary key column produces an incorrect error message.

     [ https://issues.apache.org/jira/browse/IGNITE-20600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maksim Zhuravkov reassigned IGNITE-20600:
-----------------------------------------

    Assignee: Maksim Zhuravkov

> Sql. Updating primary key column produces an incorrect error message.
> ---------------------------------------------------------------------
>
>                 Key: IGNITE-20600
>                 URL: https://issues.apache.org/jira/browse/IGNITE-20600
>             Project: Ignite
>          Issue Type: Improvement
>          Components: sql
>            Reporter: Maksim Zhuravkov
>            Assignee: Maksim Zhuravkov
>            Priority: Minor
>              Labels: ignite-3
>             Fix For: 3.0.0-beta2
>
>
> Primary key column update produces an error that contains incorrect error description:
> {code:java}
> sql("CREATE TABLE my (id INT PRIMARY KEY, val INT)");
> sql("UPDATE my SET id = 1");
> // Err: Cannot update field "ID". You cannot update key, key fields or val field in case the val is a complex type
> {code}
> Update error message so it indicates that primary key columns are not modifiable.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)