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
078f7178
Commit
078f7178
authored
Jun 10, 2004
by
pem@mysql.comhem.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed BUG#3132: Stored function returns empty when used in union.
parent
a3082cd3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
mysql-test/r/sp.result
mysql-test/r/sp.result
+7
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+9
-0
sql/item_func.cc
sql/item_func.cc
+1
-1
No files found.
mysql-test/r/sp.result
View file @
078f7178
...
...
@@ -1353,6 +1353,13 @@ drop procedure bug2564_1|
drop procedure bug2564_2|
drop function bug2564_3|
drop function bug2564_4|
create function bug3132(s char(20)) returns char(50)
return concat('Hello, ', s, '!')|
select bug3132('Bob') union all select bug3132('Judy')|
bug3132('Bob')
Hello, Bob!
Hello, Judy!
drop function bug3132|
drop table if exists fac|
create table fac (n int unsigned not null primary key, f bigint unsigned)|
create procedure ifac(n int unsigned)
...
...
mysql-test/t/sp.test
View file @
078f7178
...
...
@@ -1551,6 +1551,15 @@ drop procedure bug2564_2|
drop
function
bug2564_3
|
drop
function
bug2564_4
|
#
# BUG#3132
#
create
function
bug3132
(
s
char
(
20
))
returns
char
(
50
)
return
concat
(
'Hello, '
,
s
,
'!'
)
|
select
bug3132
(
'Bob'
)
union
all
select
bug3132
(
'Judy'
)
|
drop
function
bug3132
|
#
# Some "real" examples
...
...
sql/item_func.cc
View file @
078f7178
...
...
@@ -3320,7 +3320,7 @@ Item_func_sp::fix_length_and_dec()
switch
(
m_sp
->
result
())
{
case
STRING_RESULT
:
maybe_null
=
1
;
max_length
=
0
;
max_length
=
MAX_BLOB_WIDTH
;
break
;
case
REAL_RESULT
:
decimals
=
NOT_FIXED_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