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
b9e20027
Commit
b9e20027
authored
Sep 05, 2021
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: only do work when needed
parent
12c3d1e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
sql/item.cc
sql/item.cc
+3
-4
No files found.
sql/item.cc
View file @
b9e20027
...
@@ -2384,10 +2384,6 @@ left_is_superset(const DTCollation *left, const DTCollation *right)
...
@@ -2384,10 +2384,6 @@ left_is_superset(const DTCollation *left, const DTCollation *right)
bool
DTCollation
::
aggregate
(
const
DTCollation
&
dt
,
uint
flags
)
bool
DTCollation
::
aggregate
(
const
DTCollation
&
dt
,
uint
flags
)
{
{
THD
*
thd
=
current_thd
;
myf
utf8_flag
=
thd
?
thd
->
get_utf8_flag
()
:
global_system_variables
.
old_behavior
&
OLD_MODE_UTF8_IS_UTF8MB3
;
if
(
!
my_charset_same
(
collation
,
dt
.
collation
))
if
(
!
my_charset_same
(
collation
,
dt
.
collation
))
{
{
/*
/*
...
@@ -2475,6 +2471,9 @@ bool DTCollation::aggregate(const DTCollation &dt, uint flags)
...
@@ -2475,6 +2471,9 @@ bool DTCollation::aggregate(const DTCollation &dt, uint flags)
set
(
dt
);
set
(
dt
);
return
0
;
return
0
;
}
}
THD
*
thd
=
current_thd
;
myf
utf8_flag
=
thd
?
thd
->
get_utf8_flag
()
:
global_system_variables
.
old_behavior
&
OLD_MODE_UTF8_IS_UTF8MB3
;
CHARSET_INFO
*
bin
=
get_charset_by_csname
(
collation
->
cs_name
.
str
,
CHARSET_INFO
*
bin
=
get_charset_by_csname
(
collation
->
cs_name
.
str
,
MY_CS_BINSORT
,
MYF
(
utf8_flag
));
MY_CS_BINSORT
,
MYF
(
utf8_flag
));
set
(
bin
,
DERIVATION_NONE
);
set
(
bin
,
DERIVATION_NONE
);
...
...
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