Skip to content

Result set is not merged cause of union query on different global tables #275

@FlyingMao

Description

@FlyingMao

dble result:

mysql> (select * from test_global where id=2) union (select * from global_table2 where id=2);
+----+------+--------+-----+---------------+
| id | t_id | name   | pad | _dble_op_time |
+----+------+--------+-----+---------------+
|  2 |    2 | test_2 |   2 | 1506066633776 |
|  2 |    2 | test_2 |   2 | 1506066633796 |
+----+------+--------+-----+---------------+
2 rows in set (0.02 sec)

mysql result:

mysql> (select * from test_global where id=2) union (select * from global_table2 where id=2);
+----+------+--------+-----+
| id | t_id | name   | pad |
+----+------+--------+-----+
|  2 |    2 | test_2 |   2 |
+----+------+--------+-----+
1 row in set (0.00 sec)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions