summaryrefslogtreecommitdiff
path: root/mysql-test/main/ctype_filename.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/ctype_filename.test')
-rw-r--r--mysql-test/main/ctype_filename.test29
1 files changed, 29 insertions, 0 deletions
diff --git a/mysql-test/main/ctype_filename.test b/mysql-test/main/ctype_filename.test
new file mode 100644
index 00000000000..7ec07293a2b
--- /dev/null
+++ b/mysql-test/main/ctype_filename.test
@@ -0,0 +1,29 @@
+--disable_warnings
+drop table if exists con, aux, nul, lpt1, com1, `clock$`;
+--enable_warnings
+
+create table con (a int);
+drop table con;
+
+create table aux (a int);
+drop table aux;
+
+create table nul (a int);
+drop table nul;
+
+create table lpt1 (a int);
+drop table lpt1;
+
+create table com1 (a int);
+drop table com1;
+
+create table `clock$` (a int);
+drop table `clock$`;
+
+select convert(convert(',' using filename) using binary);
+
+--echo #
+--echo # MDEV-7677 my_charset_handler_filename has a wrong "ismbchar" member
+--echo #
+SET NAMES utf8;
+SELECT @a:=CONVERT('aя' USING filename) AS `@a`, BINARY @a, REVERSE(@a), HEX(@a), HEX(REVERSE(@a));