[MDEV-30339] sql_mode=traditional: assertion about NULL fails in Item_func_round::date_op Created: 2023-01-04  Updated: 2023-01-10

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.4, 10.5, 10.6, 10.7, 10.8, 10.9
Fix Version/s: 10.4

Type: Bug Priority: Major
Reporter: Sergei Petrunia Assignee: Alexander Barkov
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-20501 Assertion `maybe_null || !null_value'... Stalled

 Description   

I'm filing here extra testcases that were posted as comments for MDEV-20501 but represent a different problem and are not fixed by the fix for MDEV-20501.

https://jira.mariadb.org/browse/MDEV-20501?focusedCommentId=153956&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-153956

USE test;
CREATE TABLE t (a TIMESTAMP,b TIMESTAMP);  # (ENGINE=InnoDB) 
INSERT INTO t VALUES (0,0);
SET SQL_MODE='TRADITIONAL';
SELECT TRUNCATE(a,b) AS c FROM t;

https://jira.mariadb.org/browse/MDEV-20501?focusedCommentId=188708&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-188708

SET sql_mode='';
CREATE TABLE t5 (c TIMESTAMP KEY,c2 INT NOT NULL,c3 CHAR(1) NOT NULL);
INSERT INTO t5 (c) VALUES (1);
SET sql_mode=traditional;
SELECT ROUND (c,c2),TRUNCATE (c,c2) FROM t5;


Generated at Thu Feb 08 10:15:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.