File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 510
510
13 14
511
511
DROP TABLE t1;
512
512
SET sql_mode=DEFAULT;
513
+ create table t1 (b timestamp, a int as (1 in (dayofmonth (b between 'x' and current_user) = b)));
514
+ insert into t1(b) values ('2022-03-17 14:55:37');
515
+ select 1 from t1 x natural join t1;
516
+ 1
517
+ 1
518
+ Warnings:
519
+ Warning 1292 Incorrect datetime value: 'x'
520
+ Warning 1292 Incorrect datetime value: 'root@localhost'
521
+ Warning 1292 Incorrect datetime value: 'x'
522
+ Warning 1292 Incorrect datetime value: 'root@localhost'
523
+ drop table t1;
513
524
#
514
525
# End of 10.2 tests
515
526
#
Original file line number Diff line number Diff line change @@ -488,6 +488,14 @@ SELECT * FROM t1;
488
488
DROP TABLE t1;
489
489
SET sql_mode=DEFAULT;
490
490
491
+ #
492
+ # MDEV-28092 MariaDB SEGV issue
493
+ #
494
+ create table t1 (b timestamp, a int as (1 in (dayofmonth (b between 'x' and current_user) = b)));
495
+ insert into t1(b) values ('2022-03-17 14:55:37');
496
+ select 1 from t1 x natural join t1;
497
+ drop table t1;
498
+
491
499
--echo #
492
500
--echo # End of 10.2 tests
493
501
--echo #
You can’t perform that action at this time.
0 commit comments