Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
df8c849d
Commit
df8c849d
authored
Jun 08, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #2077 Japanese characters in enum/default values are reported incorrectly
parent
74c03743
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
mysql-test/r/ctype_ujis.result
mysql-test/r/ctype_ujis.result
+15
-0
mysql-test/t/ctype_ujis.test
mysql-test/t/ctype_ujis.test
+10
-0
sql/sql_show.cc
sql/sql_show.cc
+1
-1
No files found.
mysql-test/r/ctype_ujis.result
View file @
df8c849d
...
...
@@ -111,3 +111,18 @@ no index
あ
あ
drop table t1;
CREATE TABLE t1 (
a char(1) NOT NULL default '',
b enum('あ','い') default NULL
) CHARACTER SET ujis;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` char(1) NOT NULL default '',
`b` enum('あ','い') default NULL
) ENGINE=MyISAM DEFAULT CHARSET=ujis
SHOW COLUMNS FROM t1;
Field Type Null Key Default Extra
a char(1)
b enum('あ','い') YES NULL
DROP TABLE t1;
mysql-test/t/ctype_ujis.test
View file @
df8c849d
...
...
@@ -73,3 +73,13 @@ create index idx_c1 on t1(c1);
select
c1
as
'using index'
from
t1
where
c1
like
cast
(
concat
(
0xA4A2
,
'%'
)
as
char
character
set
ujis
);
select
c1
as
'no index'
from
t1
where
c1
like
cast
(
concat
(
'%'
,
0xA4A2
,
'%'
)
as
char
character
set
ujis
);
drop
table
t1
;
# Bug 2077
CREATE
TABLE
t1
(
a
char
(
1
)
NOT
NULL
default
''
,
b
enum
(
''
,
''
)
default
NULL
)
CHARACTER
SET
ujis
;
SHOW
CREATE
TABLE
t1
;
SHOW
COLUMNS
FROM
t1
;
DROP
TABLE
t1
;
sql/sql_show.cc
View file @
df8c849d
...
...
@@ -1251,7 +1251,7 @@ store_create_info(THD *thd, TABLE *table, String *packet)
packet
->
append
(
' '
);
// check for surprises from the previous call to Field::sql_type()
if
(
type
.
ptr
()
!=
tmp
)
type
.
set
(
tmp
,
sizeof
(
tmp
),
&
my_charset_bin
);
type
.
set
(
tmp
,
sizeof
(
tmp
),
system_charset_info
);
field
->
sql_type
(
type
);
packet
->
append
(
type
.
ptr
(),
type
.
length
(),
system_charset_info
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment