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
bca773e6
Commit
bca773e6
authored
Oct 30, 2002
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use item->charset() instead of item->str_value.charset()
parent
03e7fc31
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
sql/filesort.cc
sql/filesort.cc
+1
-1
sql/item_func.cc
sql/item_func.cc
+2
-4
sql/sql_select.cc
sql/sql_select.cc
+2
-2
No files found.
sql/filesort.cc
View file @
bca773e6
...
...
@@ -950,7 +950,7 @@ sortlength(SORT_FIELD *sortorder, uint s_length)
#ifdef USE_STRCOLL
if
(
!
sortorder
->
item
->
binary
())
{
CHARSET_INFO
*
cs
=
sortorder
->
item
->
str_value
.
charset
();
CHARSET_INFO
*
cs
=
sortorder
->
item
->
charset
();
if
(
use_strnxfrm
(
cs
))
sortorder
->
length
=
sortorder
->
length
*
cs
->
strxfrm_multiply
;
}
...
...
sql/item_func.cc
View file @
bca773e6
...
...
@@ -228,11 +228,9 @@ Field *Item_func::tmp_table_field(TABLE *t_arg)
break
;
case
STRING_RESULT
:
if
(
max_length
>
255
)
res
=
new
Field_blob
(
max_length
,
maybe_null
,
name
,
t_arg
,
str_value
.
charset
());
res
=
new
Field_blob
(
max_length
,
maybe_null
,
name
,
t_arg
,
charset
());
else
res
=
new
Field_string
(
max_length
,
maybe_null
,
name
,
t_arg
,
str_value
.
charset
());
res
=
new
Field_string
(
max_length
,
maybe_null
,
name
,
t_arg
,
charset
());
break
;
}
return
res
;
...
...
sql/sql_select.cc
View file @
bca773e6
...
...
@@ -3624,9 +3624,9 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
case
STRING_RESULT
:
if
(
item_sum
->
max_length
>
255
)
return
new
Field_blob
(
item_sum
->
max_length
,
maybe_null
,
item
->
name
,
table
,
item
->
str_value
.
charset
());
item
->
name
,
table
,
item
->
charset
());
return
new
Field_string
(
item_sum
->
max_length
,
maybe_null
,
item
->
name
,
table
,
item
->
str_value
.
charset
());
item
->
name
,
table
,
item
->
charset
());
}
}
thd
->
fatal_error
=
1
;
...
...
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