Bug #105481 BIGINT UNSIGNED value on: SELECT (2 < 3) * -1;

Submitted: 6 Nov 2021 8:10 Modified: 6 Nov 2021 9:09
Reporter: Pratyush Mittal Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: DML Severity:S3 (Non-critical)
Version:8.0.27 OS:Any
Assigned to: CPU Architecture:Any
Tags: regression

[6 Nov 2021 8:10] Pratyush Mittal
Description:
Version 8.0.27, the queries are giving "BIGINT UNSIGNED value is out of range" when comparing inequality results with negative whole numbers.

These work fine:
mysql> select (2 < 3) * -1.0;
-1.0

mysql> select (2 < 3) * 1;
1

This gives error:
mysql> select (2 < 3) * -1;
BIGINT UNSIGNED value is out of range

How to repeat:
SELECT (2 < 3) * -1;
[6 Nov 2021 9:09] MySQL Verification Team
Hello Pratyush,

Thank you for the report and test case.
Observed that 8.0.27 build is affected.

regards,
Umesh
[8 Nov 2021 7:55] Roy Lyseng
Posted by developer:
 
Problem is caused by the same issue as bug#33516898

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.