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
5f17cbab
Commit
5f17cbab
authored
Jan 12, 2006
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_show.cc:
after-merge fix for bug#15581 COALESCE function truncates mutli-byte TINYTEXT values
parent
832148de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
sql/sql_show.cc
sql/sql_show.cc
+6
-3
No files found.
sql/sql_show.cc
View file @
5f17cbab
...
...
@@ -2623,12 +2623,15 @@ static int get_schema_column_record(THD *thd, struct st_table_list *tables,
field
->
real_type
()
==
MYSQL_TYPE_VARCHAR
||
// For varbinary type
field
->
real_type
()
==
MYSQL_TYPE_STRING
)
// For binary type
{
uint32
octet_max_length
=
field
->
max_length
();
if
(
octet_max_length
!=
(
uint32
)
4294967295U
)
octet_max_length
/=
field
->
charset
()
->
mbmaxlen
;
longlong
char_max_len
=
is_blob
?
(
longlong
)
field
->
max_length
()
/
field
->
charset
()
->
mbminlen
:
(
longlong
)
field
->
max_length
()
/
field
->
charset
()
->
mbmaxlen
;
(
longlong
)
octet_max_length
/
field
->
charset
()
->
mbminlen
:
(
longlong
)
octet_max_length
/
field
->
charset
()
->
mbmaxlen
;
table
->
field
[
8
]
->
store
(
char_max_len
,
TRUE
);
table
->
field
[
8
]
->
set_notnull
();
table
->
field
[
9
]
->
store
((
longlong
)
field
->
max_length
()
,
TRUE
);
table
->
field
[
9
]
->
store
((
longlong
)
octet_max_length
,
TRUE
);
table
->
field
[
9
]
->
set_notnull
();
}
...
...
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