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 result is not compatible with MySQL #25645

Closed
hawkingrei opened this issue Jun 22, 2021 · 3 comments
Closed

UPDATE result is not compatible with MySQL #25645

hawkingrei opened this issue Jun 22, 2021 · 3 comments
Assignees
Labels
compatibility-breaker Violation of forwards/backwards compatibility in a design-time piece. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug. wontfix This issue will not be fixed.

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table companies(id bigint primary key, ida bigint);
insert into companies values(14, 14);
UPDATE companies SET id = id + 1, ida = id * 2;

2. What did you expect to see? (Required)

in the mysql, you can see
image

3. What did you see instead (Required)

but in the tidb
image

4. What is your TiDB version? (Required)

Release Version: v5.2.0-alpha-122-g3132b5940-dirty
Edition: Community
Git Commit Hash: 3132b59
Git Branch: master

@hawkingrei hawkingrei added the type/bug The issue is confirmed as a bug. label Jun 22, 2021
@wshwsh12 wshwsh12 added sig/sql-infra SIG: SQL Infra and removed sig/execution SIG execution labels Jun 24, 2021
@tiancaiamao tiancaiamao added status/future compatibility-breaker Violation of forwards/backwards compatibility in a design-time piece. wontfix This issue will not be fixed. labels Jun 25, 2021
@tiancaiamao
Copy link
Contributor

Yes, this behaviour is incompatible with MySQL.

However, if we change this behaviour, we will be incompatible with the old TiDB releases,
that would affect more customers who are running TiDB in their produce environment.

There are trade-offs, since this behaviour difference is not a real bug, we choose not to fix it.
I've add a won't fix tag.

@tiancaiamao tiancaiamao self-assigned this Dec 1, 2021
@tiancaiamao
Copy link
Contributor

I'll update the document for this

@tiancaiamao
Copy link
Contributor

Introduced by #20493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility-breaker Violation of forwards/backwards compatibility in a design-time piece. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug. wontfix This issue will not be fixed.
Projects
None yet
Development

No branches or pull requests

4 participants