mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-30997 SIGSEGV in __strlen_avx2 | make_date_time | Item_func_date_format::val_str
my_locale_month_names_ka_GE[] has definitions for 11 months only. August was missing in a mistake. Fix: - Adding a definition for August - Adding tests for all abbreviated and full month and weekday names
This commit is contained in:
@ -193,6 +193,32 @@ SELECT x;
|
||||
|
||||
SET lc_messages=DEFAULT;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-30997 SIGSEGV in __strlen_avx2 | make_date_time | Item_func_date_format::val_str
|
||||
--echo #
|
||||
|
||||
SET lc_messages=en_US;
|
||||
SET lc_time_names=111;
|
||||
SELECT DATE_FORMAT('1-12-01','%c %b %M');
|
||||
CREATE TABLE t1 (i INT);
|
||||
INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12);
|
||||
SELECT d, DATE_FORMAT(d, '%b') AS MONTH_ABBR, MONTHNAME(d) FROM
|
||||
(
|
||||
SELECT CAST(CONCAT('2001-', i, '-01') AS DATE) AS d FROM t1
|
||||
) d1 ORDER BY d;
|
||||
|
||||
SELECT d, WEEKDAY(d), DATE_FORMAT(d, '%a') AS DAY_ABBR, DAYNAME(d) FROM
|
||||
(
|
||||
SELECT CAST(CONCAT('2001-01-', i) AS DATE) AS d FROM t1 WHERE i BETWEEN 1 AND 7
|
||||
) d1 ORDER BY d;
|
||||
|
||||
|
||||
DROP TABLE t1;
|
||||
SET lc_time_names=DEFAULT;
|
||||
SET lc_messages=DEFAULT;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.11 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user