Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
10.2.2, 10.3(EOL)
-
None
Description
Please have a look at the attached screenshots, it will be easy to reproduce.
when i run this Query, it return wrong results when i run this query on 10.2.7
but return right results when i run on 10.1.x.
SELECT `api`.`Id`, `api`.`Description`, `api`.`DisplayName`, `api`.`Enabled`, `api`.`Name` |
FROM `ApiResources` AS `api` |
WHERE EXISTS ( |
SELECT 1 |
FROM `ApiScopes` AS `x` |
WHERE `x`.`Name` IN ('openid', 'profile', 'ccx2api', 'ccx2lmapi') AND (`api`.`Id` = `x`.`ApiResourceId`)) |
ORDER BY `api`.`Id` |
Attachments
Issue Links
- is duplicated by
-
MDEV-12959 ORDER BY is mixing up rows
-
- Closed
-
-
MDEV-13994 Bad join results with orderby_uses_equalities=on
-
- Closed
-
- relates to
-
MDEV-13694 Wrong result upon GROUP BY with orderby_uses_equalities=on
-
- Closed
-
-
MDEV-13704 Nested query does not give same result as subquery and an outer query
-
- Closed
-
-
MDEV-13994 Bad join results with orderby_uses_equalities=on
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Please have a look at the attached screenshots, it will be easy to reproduce.
when i run this Query, it return wrong results when i run this query on 10.2.7 but return right results when i run on 10.1.x. SELECT `api`.`Id`, `api`.`Description`, `api`.`DisplayName`, `api`.`Enabled`, `api`.`Name` FROM `ApiResources` AS `api` WHERE EXISTS ( SELECT 1 FROM `ApiScopes` AS `x` WHERE `x`.`Name` IN ('openid', 'profile', 'ccx2api', 'ccx2lmapi') AND (`api`.`Id` = `x`.`ApiResourceId`)) ORDER BY `api`.`Id` |
Please have a look at the attached screenshots, it will be easy to reproduce.
when i run this Query, it return wrong results when i run this query on 10.2.7 but return right results when i run on 10.1.x. {code:sql} SELECT `api`.`Id`, `api`.`Description`, `api`.`DisplayName`, `api`.`Enabled`, `api`.`Name` FROM `ApiResources` AS `api` WHERE EXISTS ( SELECT 1 FROM `ApiScopes` AS `x` WHERE `x`.`Name` IN ('openid', 'profile', 'ccx2api', 'ccx2lmapi') AND (`api`.`Id` = `x`.`ApiResourceId`)) ORDER BY `api`.`Id` {code} |
Attachment | 10.2.png [ 43898 ] |
Attachment | 10.1.png [ 43899 ] |
Attachment | ccx-id_apiresources.sql [ 43900 ] | |
Attachment | ccx-id_apiscopes.sql [ 43901 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Component/s | Optimizer [ 10200 ] |
Assignee | Sergei Petrunia [ psergey ] |
Affects Version/s | 10.2.2 [ 22013 ] | |
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.2.7 [ 22543 ] |
Fix Version/s | 10.2 [ 14601 ] |
Priority | Blocker [ 1 ] | Major [ 3 ] |
Link |
This issue relates to |
Link |
This issue is duplicated by |
Link |
This issue relates to |
Link |
This issue relates to |
Fix Version/s | N/A [ 14700 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Resolution | Duplicate [ 3 ] | |
Status | Confirmed [ 10101 ] | Closed [ 6 ] |
Link |
This issue is duplicated by |
Workflow | MariaDB v3 [ 81810 ] | MariaDB v4 [ 152532 ] |
please add