[MDEV-17330] Wrong result for 0 + LEAST(TIME'-10:00:00',TIME'10:00:00') Created: 2018-09-30  Updated: 2018-09-30  Resolved: 2018-09-30

Status: Closed
Project: MariaDB Server
Component/s: Data types, Temporal Types
Affects Version/s: 10.0, 10.1, 10.2, 10.3, 10.4
Fix Version/s: 10.4.0

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-4912 Data type plugin API version 1 Closed
Relates
relates to MDEV-17318 CAST(LEAST(zero_date,non_zero_date) A... Closed

 Description   

SELECT 0 + LEAST(TIME'-10:00:00',TIME'10:00:00') AS c;

+--------+
| c      |
+--------+
| 100000 |
+--------+

Looks wrong. The expected result is -100000.


Generated at Thu Feb 08 08:35:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.