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
8c1e9d0c
Commit
8c1e9d0c
authored
Mar 02, 2007
by
gkodinov/kgeorge@magare.gmz
Browse files
Options
Browse Files
Download
Plain Diff
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into magare.gmz:/home/kgeorge/mysql/autopush/B26537-5.0-opt
parents
629aa807
4a6efcd6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
mysql-test/r/func_str.result
mysql-test/r/func_str.result
+6
-0
mysql-test/t/func_str.test
mysql-test/t/func_str.test
+6
-0
sql/item_strfunc.h
sql/item_strfunc.h
+5
-1
No files found.
mysql-test/r/func_str.result
View file @
8c1e9d0c
...
@@ -1940,4 +1940,10 @@ abcxx
...
@@ -1940,4 +1940,10 @@ abcxx
select lpad('abc', cast(5 as unsigned integer), 'x');
select lpad('abc', cast(5 as unsigned integer), 'x');
lpad('abc', cast(5 as unsigned integer), 'x')
lpad('abc', cast(5 as unsigned integer), 'x')
xxabc
xxabc
SELECT UNHEX('G');
UNHEX('G')
NULL
SELECT UNHEX('G') IS NULL;
UNHEX('G') IS NULL
1
End of 5.0 tests
End of 5.0 tests
mysql-test/t/func_str.test
View file @
8c1e9d0c
...
@@ -1008,4 +1008,10 @@ select repeat('a', cast(2 as unsigned int));
...
@@ -1008,4 +1008,10 @@ select repeat('a', cast(2 as unsigned int));
select
rpad
(
'abc'
,
cast
(
5
as
unsigned
integer
),
'x'
);
select
rpad
(
'abc'
,
cast
(
5
as
unsigned
integer
),
'x'
);
select
lpad
(
'abc'
,
cast
(
5
as
unsigned
integer
),
'x'
);
select
lpad
(
'abc'
,
cast
(
5
as
unsigned
integer
),
'x'
);
#
# Bug #26537: UNHEX() IS NULL comparison fails
#
SELECT
UNHEX
(
'G'
);
SELECT
UNHEX
(
'G'
)
IS
NULL
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
sql/item_strfunc.h
View file @
8c1e9d0c
...
@@ -605,7 +605,11 @@ class Item_func_unhex :public Item_str_func
...
@@ -605,7 +605,11 @@ class Item_func_unhex :public Item_str_func
{
{
String
tmp_value
;
String
tmp_value
;
public:
public:
Item_func_unhex
(
Item
*
a
)
:
Item_str_func
(
a
)
{}
Item_func_unhex
(
Item
*
a
)
:
Item_str_func
(
a
)
{
/* there can be bad hex strings */
maybe_null
=
1
;
}
const
char
*
func_name
()
const
{
return
"unhex"
;
}
const
char
*
func_name
()
const
{
return
"unhex"
;
}
String
*
val_str
(
String
*
);
String
*
val_str
(
String
*
);
void
fix_length_and_dec
()
void
fix_length_and_dec
()
...
...
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