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

Maksim Zhuravkov updated IGNITE-20600:
--------------------------------------
    Description: 
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.

  was:
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 modifiable.


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

Reply via email to