[MDEV-13242] Wrong results for queries with row constructors and information_schema Created: 2017-07-04 Updated: 2020-08-25 Resolved: 2017-10-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.1.14, 10.2.7 |
| Fix Version/s: | 10.1.29 |
| Type: | Bug | Priority: | Major |
| Reporter: | Valerii Kravchuk | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | information_schema, upstream | ||
| Sprint: | 10.2.10 |
| Description |
|
Basically, MariaDB is affected by the upstream https://bugs.mysql.com/bug.php?id=86930, but our case is even worse, as a workaround with subquery does not work:
|
| Comments |
| Comment by Alexander Barkov [ 2017-10-04 ] | ||||||||||||||||
|
If I remove the table_schema='test' part from the condition:
It still returns empty set. If I rewrite the query as follows:
it correctly returns this result:
If I copy the data into a "normal" table, it works as expected:
and this query returns two rows:
|