Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update should not be forbidden in some case even if view is contained #16253

Closed
XuHuaiyu opened this issue Apr 9, 2020 · 3 comments
Closed
Assignees
Labels
severity/minor sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@XuHuaiyu
Copy link
Contributor

XuHuaiyu commented Apr 9, 2020

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. What did you do?

tidb> create table t(a int);
Query OK, 0 rows affected (0.01 sec)

tidb> drop table t1;
Query OK, 0 rows affected (0.02 sec)

tidb> create table t1(a int);
Query OK, 0 rows affected (0.01 sec)

tidb> create view v as select * from t1;
Query OK, 0 rows affected (0.01 sec)

tidb>
tidb> update t,v set t.a=1 where t.a=v.a;
ERROR 1105 (HY000): update view v is not supported now.

2. What did you expect to see?

No error is returned because not filde of the view v is changed.

@XuHuaiyu
Copy link
Contributor Author

XuHuaiyu commented Apr 24, 2020

release-3.0 and release-3.1 are be fixed individually.

master branch can not be fixed using the same way because of inline projection.
I'll fix it asap

@XuHuaiyu
Copy link
Contributor Author

Fixed already

@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants