[MCOL-1782] UPDATE and DELETE reported incorrect affected row count Created: 2018-10-08 Updated: 2021-10-01 Resolved: 2018-11-10 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | DMLProc |
| Affects Version/s: | 1.2 |
| Fix Version/s: | 1.2.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Sprint: | 2018-20 | ||||||||||||
| Description |
|
Build tested: /root/columnstore/mariadb-columnstore-server Merge pull request #134 from mariadb-corporation/versionCmakeFix port changes for mysql_version cmake to fix columnstore RPM packaging /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #586 from mariadb-corporation/ Both UPDATE and DELETE reports one less than actual affected rows. MariaDB [mytest]> create table t2 (c1 int,c2 varchar(20)) engine=columnstore; MariaDB [mytest]> insert t2 values (1,'a'); MariaDB [mytest]> insert t2 values (2,'b'), (3,'c'), (4, 'd'); MariaDB [mytest]> select * from t2;
-----
----- MariaDB [mytest]> update t2 set c1 = -10 where c1 < 3; MariaDB [mytest]> select * from t2;
-----
----- MariaDB [mytest]> delete from t2 where c1 < 0; MariaDB [mytest]> select * from t2;
-----
----- MariaDB [mytest]> delete from t2 where c1 < 0; MariaDB [mytest]> update t2 set c1 = -10 where c1 < 3; MariaDB [mytest]> update t2 set c1 = -10 where c1 = 3; MariaDB [mytest]> select * from t2;
-----
----- MariaDB [mytest]> delete from t2 where c1 =4; MariaDB [mytest]> select * from t2;
-----
----- |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2018-10-12 ] |
|
This is causing test297 to fail |
| Comment by David Thompson (Inactive) [ 2018-11-10 ] |
|
verified manually and that the regression test is passing in buildbot. |