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
af0e03b2
Commit
af0e03b2
authored
Jan 09, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merged 41437 to 5.0-bugteam
parents
af739b2c
ac885d5d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
mysql-test/r/mysql.result
mysql-test/r/mysql.result
+2
-0
mysql-test/t/mysql.test
mysql-test/t/mysql.test
+5
-0
sql/item_strfunc.cc
sql/item_strfunc.cc
+6
-0
No files found.
mysql-test/r/mysql.result
View file @
af0e03b2
...
...
@@ -186,4 +186,6 @@ delimiter
2
2
2
@z:='1' @z=database()
1 NULL
End of 5.0 tests
mysql-test/t/mysql.test
View file @
af0e03b2
...
...
@@ -309,4 +309,9 @@ EOF
--
exec
$MYSQL
-
c
<
$MYSQLTEST_VARDIR
/
tmp
/
bug38158
.
sql
2
>&
1
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
bug38158
.
sql
;
#
# Bug #41437: Value stored in 'case' lacks charset, causees segfault
#
--
exec
$MYSQL
-
e
"select @z:='1',@z=database()"
--
echo
End
of
5.0
tests
sql/item_strfunc.cc
View file @
af0e03b2
...
...
@@ -1696,6 +1696,12 @@ Item *Item_func_sysconst::safe_charset_converter(CHARSET_INFO *tocs)
Item_string
*
conv
;
uint
conv_errors
;
String
tmp
,
cstr
,
*
ostr
=
val_str
(
&
tmp
);
if
(
null_value
)
{
Item
*
null_item
=
new
Item_null
((
char
*
)
fully_qualified_func_name
());
null_item
->
collation
.
set
(
tocs
);
return
null_item
;
}
cstr
.
copy
(
ostr
->
ptr
(),
ostr
->
length
(),
ostr
->
charset
(),
tocs
,
&
conv_errors
);
if
(
conv_errors
||
!
(
conv
=
new
Item_static_string_func
(
fully_qualified_func_name
(),
...
...
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