You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
create table t1 (a int unique,
b int generated always as (-a) virtual,
c int generated always as (-a) stored);
insert into t1 values (1,default,default);
insert into t1 values (1,default,default) on duplicate key update a=2, b=default;
What did you expect to see?
Query OK, 1 row affected (0.01 sec)
What did you see instead?
ERROR 3105 (HY000): The value specified for generated column 'b' in table 't1' is not allowed.
What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
Release Version: v4.0.0-alpha-693-gada724a2a
The text was updated successfully, but these errors were encountered:
Deardrops
changed the title
Support use on duplicate key update b=default in generated columns
Support use on duplicate key update b=default on generated columns
Nov 5, 2019
Deardrops
changed the title
Support use on duplicate key update b=default on generated columns
planner: Support assign DEFAULT to generated column in on duplicate key update statement
Nov 6, 2019
Deardrops
changed the title
planner: Support assign DEFAULT to generated column in on duplicate key update statement
Support assign DEFAULT to generated column in on duplicate key update statement
Nov 6, 2019
Deardrops
changed the title
Support assign DEFAULT to generated column in on duplicate key update statement
Support assign DEFAULT in on duplicate key update statement
Nov 12, 2019
Deardrops
changed the title
Support assign DEFAULT in on duplicate key update statement
Support assign DEFAULT in ON DUPLICATE KEY UPDATE statement
Nov 12, 2019
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: