[MDEV-3489] LP:601164 - Wrong result for DELETE over a table with a virtual column Created: 2010-07-02 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
DELETE over a table containing a virtual column with ORDER BY an index and with a LIMIT clause may return wrong results MariaDB [test]> create table t1 (a int, b int, v int as (a+1), index idx(b)); MariaDB [test]> insert into t1(a, b) values (4, 40), (3, 30), (5, 50), (7, 70), (8, 80), (2, 20), (1, 10); MariaDB [test]> select * from t1 order by b;
-----
----- MariaDB [test]> delete from t1 where v > 6 order by b limit 1; MariaDB [test]> select * from t1;
-----
----- |
| Comments |
| Comment by Sergei Petrunia [ 2010-07-02 ] | ||||||||||||||||||||||||
|
Re: Wrong result for DELETE over a table with a virtual column | ||||||||||||||||||||||||
| Comment by Igor Babaev [ 2010-07-03 ] | ||||||||||||||||||||||||
|
Re: Wrong result for DELETE over a table with a virtual column MariaDB [test]> update t1 set a=v order by b limit 1; MariaDB [test]> select * from t1 order by b;
-----
----- | ||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] | ||||||||||||||||||||||||
|
Launchpad bug id: 601164 |