summaryrefslogtreecommitdiff
path: root/mysql-test/t/locale.test
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mysql.com>2009-10-06 11:02:51 +0500
committerAlexander Barkov <bar@mysql.com>2009-10-06 11:02:51 +0500
commit27936529e06368557e1b662d020a87690af200f4 (patch)
treefaf8af7c0ac5bf9f8ea83f0a0562915ed8818ed5 /mysql-test/t/locale.test
parent636ea6a1c464b247a3665bebac7bf28495ac087a (diff)
downloadmariadb-git-27936529e06368557e1b662d020a87690af200f4.tar.gz
Backporting WL#4642 Greek locale for DAYNAME, MONTHNAME, DATE_FORMAT
added: mysql-test/r/locale.result mysql-test/t/locale.test modified: mysql-test/r/variables.result mysql-test/t/variables.test sql/sql_locale.cc
Diffstat (limited to 'mysql-test/t/locale.test')
-rw-r--r--mysql-test/t/locale.test34
1 files changed, 34 insertions, 0 deletions
diff --git a/mysql-test/t/locale.test b/mysql-test/t/locale.test
new file mode 100644
index 00000000000..a6291d9048d
--- /dev/null
+++ b/mysql-test/t/locale.test
@@ -0,0 +1,34 @@
+--disable_warnings
+DROP TABLE IF EXISTS t1;
+--enable_warnings
+
+--echo Start of 5.4 tests
+
+--echo #
+--echo # WL#4642 Greek locale for DAYNAME, MONTHNAME, DATE_FORMAT
+--echo #
+
+SET NAMES utf8;
+
+SET @@lc_time_names=109;
+SELECT @@lc_time_names;
+
+CREATE TABLE t1 (a DATE);
+INSERT INTO t1 VALUES
+('2006-01-01'),('2006-01-02'),('2006-01-03'),
+('2006-01-04'),('2006-01-05'),('2006-01-06'),('2006-01-07');
+SELECT a, date_format(a,'%a') as abday, dayname(a) as day FROM t1 ORDER BY a;
+DROP TABLE t1;
+
+CREATE TABLE t1 (a DATE);
+INSERT INTO t1 VALUES
+('2006-01-01'),('2006-02-01'),('2006-03-01'),
+('2006-04-01'),('2006-05-01'),('2006-06-01'),
+('2006-07-01'),('2006-08-01'),('2006-09-01'),
+('2006-10-01'),('2006-11-01'),('2006-12-01');
+SELECT a, date_format(a,'%b') as abmon, monthname(a) as mon FROM t1 ORDER BY a;
+
+SELECT format(123456.789, 3, 'el_GR');
+DROP TABLE t1;
+
+--echo End of 5.4 tests