[
https://issues.apache.org/jira/browse/IGNITE-20600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17776496#comment-17776496
]
Maksim Zhuravkov commented on IGNITE-20600:
-------------------------------------------
[~jooger] [~amashenkov] Could you please review this PR?
> 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
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)