Bug #118749 internal_tmp_mem_storage_engine=memory make the query generate different result on -0 and 0
| Submitted: | 30 Jul 2025 2:41 | Modified: | 30 Jul 2025 11:57 |
|---|---|---|---|
| Reporter: | chi zhang (OCA) | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
| Version: | 9.3.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[30 Jul 2025 11:57]
MySQL Verification Team
Hello Chi Zhang, Thank you for the bug report. Imho this is duplicate of Bug #115654, please see Bug #115654. Regards, Ashwini Patil
[13 Oct 10:20]
Knut Anders Hatlen
See also bug#67978.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 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.
Description: The following test case generates `-0` and `0`, however, if I remove `SET SESSION internal_tmp_mem_storage_engine = MEMORY;`, the test case only generates `-0` ``` CREATE TABLE t0(c0 FLOAT) ; INSERT INTO t0(c0) VALUES('-0.0'), ('0'); SET SESSION internal_tmp_mem_storage_engine = MEMORY; SELECT DISTINCTROW t0.c0 FROM t0; c0 -0 0 ``` ``` CREATE TABLE t0(c0 FLOAT) ; INSERT INTO t0(c0) VALUES('-0.0'), ('0'); SELECT DISTINCTROW t0.c0 FROM t0; c0 -0 ``` How to repeat: ``` CREATE TABLE t0(c0 FLOAT) ; INSERT INTO t0(c0) VALUES('-0.0'), ('0'); SET SESSION internal_tmp_mem_storage_engine = MEMORY; SELECT DISTINCTROW t0.c0 FROM t0; c0 -0 0 ```