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
6b18a618
Commit
6b18a618
authored
Mar 21, 2003
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item_cmpfunc.cc:
IFNULL() now honors collations
parent
b3e89e3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+5
-0
No files found.
sql/item_cmpfunc.cc
View file @
6b18a618
...
...
@@ -650,6 +650,9 @@ Item_func_ifnull::fix_length_and_dec()
args
[
1
]
->
result_type
()))
!=
REAL_RESULT
)
decimals
=
0
;
if
(
set_charset
(
args
[
0
]
->
charset
(),
args
[
0
]
->
coercibility
,
args
[
1
]
->
charset
(),
args
[
1
]
->
coercibility
))
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
func_name
());
}
...
...
@@ -690,11 +693,13 @@ Item_func_ifnull::val_str(String *str)
if
(
!
args
[
0
]
->
null_value
)
{
null_value
=
0
;
res
->
set_charset
(
charset
());
return
res
;
}
res
=
args
[
1
]
->
val_str
(
str
);
if
((
null_value
=
args
[
1
]
->
null_value
))
return
0
;
res
->
set_charset
(
charset
());
return
res
;
}
...
...
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