Bug #90649 | `select null or true` not consistent with `select null or false` | ||
---|---|---|---|
Submitted: | 26 Apr 2018 14:55 | Modified: | 8 May 2018 5:47 |
Reporter: | David Portabella | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.5.54 | OS: | Any |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[26 Apr 2018 14:55]
David Portabella
[27 Apr 2018 14:57]
MySQL Verification Team
Hi, It's expected optimization, the "or false" returns the rest of expression and "or true" returns true not looking at the rest of expression so data type of result will differ. I doubt this is a bug but have to check SQL specification first kind regards Bogdan
[8 May 2018 5:47]
MySQL Verification Team
Hi, This def. is not a bug. I tested other SQL servers and they behave identically (postgresql too for example), and the SQL standard is not defining this as far as I can see so no changes going to happen here. all best Bogdan