Bug #119413 Intersection order

Submitted: 17 Nov 2025 23:52 Modified: 7 Dec 2025 21:06
Reporter: wenwen wen Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S3 (Non-critical)
Version:mysql Ver 9.4. OS:Any
Assigned to: CPU Architecture:Any

[17 Nov 2025 23:52] wenwen wen
Description:
SELECT NULL INTERSECT SELECT 1 returns empty but SELECT 1 INTERSECT SELECT NULL gives the result 1. The order of the intersection changes then the results are different.

How to repeat:
You could change the order of INTERSECT but must have NULL at one side.
[7 Dec 2025 21:06] Roy Lyseng
Verified as described.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.