Commit a59f483c authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-28092 MariaDB SEGV issue

add test
parent 5aef0123
...@@ -510,6 +510,17 @@ a b ...@@ -510,6 +510,17 @@ a b
13 14 13 14
DROP TABLE t1; DROP TABLE t1;
SET sql_mode=DEFAULT; SET sql_mode=DEFAULT;
create table t1 (b timestamp, a int as (1 in (dayofmonth (b between 'x' and current_user) = b)));
insert into t1(b) values ('2022-03-17 14:55:37');
select 1 from t1 x natural join t1;
1
1
Warnings:
Warning 1292 Incorrect datetime value: 'x'
Warning 1292 Incorrect datetime value: 'root@localhost'
Warning 1292 Incorrect datetime value: 'x'
Warning 1292 Incorrect datetime value: 'root@localhost'
drop table t1;
# #
# End of 10.2 tests # End of 10.2 tests
# #
...@@ -488,6 +488,14 @@ SELECT * FROM t1; ...@@ -488,6 +488,14 @@ SELECT * FROM t1;
DROP TABLE t1; DROP TABLE t1;
SET sql_mode=DEFAULT; SET sql_mode=DEFAULT;
#
# MDEV-28092 MariaDB SEGV issue
#
create table t1 (b timestamp, a int as (1 in (dayofmonth (b between 'x' and current_user) = b)));
insert into t1(b) values ('2022-03-17 14:55:37');
select 1 from t1 x natural join t1;
drop table t1;
--echo # --echo #
--echo # End of 10.2 tests --echo # End of 10.2 tests
--echo # --echo #
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment