~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 
# Test for SHOW CREATE TABLE with multi-byte characters
# in various schema fields and identifiers.
#

# 
# Bug #314502 - "show create table crashes with multi-byte character in enum description"
#

--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
# 킱 is a 3-byte character in UTF8
CREATE TABLE t1 (a enum('aaaa', '킱'));
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
SHOW CREATE TABLE t1;

DROP TABLE t1;