tidb icon indicating copy to clipboard operation
tidb copied to clipboard

Diff result with mysql for statement with `union` and `union all`

Open alivxxx opened this issue 8 years ago • 0 comments

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.
create table t(a int, b int, c int);
insert into t values (1,2,3);
select * from t union select * from t union all select * from t;
  1. What did you expect to see?
+------+------+------+
| a    | b    | c    |
+------+------+------+
|    1 |    2 |    3 |
|    1 |    2 |    3 |
+------+------+------+
  1. What did you see instead?
+------+------+------+
| a    | b    | c    |
+------+------+------+
|    1 |    2 |    3 |
+------+------+------+
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

master

alivxxx avatar Jun 01 '18 11:06 alivxxx