summaryrefslogtreecommitdiff
path: root/mysql-test/main/locale.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/locale.test')
-rw-r--r--mysql-test/main/locale.test40
1 files changed, 40 insertions, 0 deletions
diff --git a/mysql-test/main/locale.test b/mysql-test/main/locale.test
index 9f4ceb270d9..c99f2cb3865 100644
--- a/mysql-test/main/locale.test
+++ b/mysql-test/main/locale.test
@@ -182,6 +182,20 @@ select date_format('2001-12-01', '%c %b %M', 'rm_CH');
select date_format('2001-01-06', '%w %a %W', 'de_CH');
select date_format('2001-09-01', '%c %b %M', 'de_CH');
+--echo #
+--echo # MDEV-30630 locale: Chinese error message for ZH_CN
+--echo #
+
+SET lc_messages=ZH_CN;
+--error ER_BAD_FIELD_ERROR
+SELECT x;
+
+SET lc_messages=DEFAULT;
+
+--echo #
+--echo # End of 10.4 tests
+--echo #
+
--echo #
--echo # MDEV-30789 Add Georgian error messages and locale
@@ -193,6 +207,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 #