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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3d6e811e
Commit
3d6e811e
authored
Nov 25, 2004
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
table.cc:
Bug #6802 MySQL 4.0's VARCHAR(NN) BINARY is interpreted as VARBINARY(NN) in 4.1
parent
89537699
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
sql/table.cc
sql/table.cc
+20
-1
No files found.
sql/table.cc
View file @
3d6e811e
...
...
@@ -463,7 +463,26 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
/* old frm file */
field_type
=
(
enum_field_types
)
f_packtype
(
pack_flag
);
charset
=
f_is_binary
(
pack_flag
)
?
&
my_charset_bin
:
outparam
->
table_charset
;
if
(
f_is_binary
(
pack_flag
))
{
/*
Try to choose the best 4.1 type:
- for 4.0 "CHAR(N) BINARY" or "VARCHAR(N) BINARY"
try to find a binary collation for character set.
- for other types (e.g. BLOB) just use my_charset_bin.
*/
if
(
!
f_is_blob
(
pack_flag
))
{
// 3.23 or 4.0 string
if
(
!
(
charset
=
get_charset_by_csname
(
outparam
->
table_charset
->
csname
,
MY_CS_BINSORT
,
MYF
(
0
))))
charset
=
&
my_charset_bin
;
}
else
charset
=
&
my_charset_bin
;
}
else
charset
=
outparam
->
table_charset
;
bzero
((
char
*
)
&
comment
,
sizeof
(
comment
));
}
*
field_ptr
=
reg_field
=
...
...
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