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
ff71af1e
Commit
ff71af1e
authored
Mar 06, 2006
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/Users/kent/mysql/bk/mysql-5.1-new
parents
7d7da887
dfae81d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
mysql-test/r/sp.result
mysql-test/r/sp.result
+14
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+22
-0
sql/item_func.cc
sql/item_func.cc
+2
-0
No files found.
mysql-test/r/sp.result
View file @
ff71af1e
...
@@ -4778,6 +4778,20 @@ Handler
...
@@ -4778,6 +4778,20 @@ Handler
Inner
Inner
drop procedure bug15011|
drop procedure bug15011|
drop table t3|
drop table t3|
drop function if exists bug17615|
create table t3 (a varchar(256) unicode)|
create function bug17615() returns varchar(256) unicode
begin
declare tmp_res varchar(256) unicode;
set tmp_res= 'foo string';
return tmp_res;
end|
insert into t3 values(bug17615())|
select * from t3|
a
foo string
drop function bug17615|
drop table t3|
drop procedure if exists bug17476|
drop procedure if exists bug17476|
create table t3 ( d date )|
create table t3 ( d date )|
insert into t3 values
insert into t3 values
...
...
mysql-test/t/sp.test
View file @
ff71af1e
...
@@ -5621,6 +5621,28 @@ drop table t3|
...
@@ -5621,6 +5621,28 @@ drop table t3|
#
#
# BUG#17615: problem with character set
#
--
disable_warnings
drop
function
if
exists
bug17615
|
--
enable_warnings
create
table
t3
(
a
varchar
(
256
)
unicode
)
|
create
function
bug17615
()
returns
varchar
(
256
)
unicode
begin
declare
tmp_res
varchar
(
256
)
unicode
;
set
tmp_res
=
'foo string'
;
return
tmp_res
;
end
|
insert
into
t3
values
(
bug17615
())
|
select
*
from
t3
|
drop
function
bug17615
|
drop
table
t3
|
# BUG#17476: Stored procedure not returning data when it is called first
# BUG#17476: Stored procedure not returning data when it is called first
# time per connection
# time per connection
#
#
...
...
sql/item_func.cc
View file @
ff71af1e
...
@@ -4881,6 +4881,7 @@ Item_func_sp::fix_length_and_dec()
...
@@ -4881,6 +4881,7 @@ Item_func_sp::fix_length_and_dec()
{
{
decimals
=
result_field
->
decimals
();
decimals
=
result_field
->
decimals
();
max_length
=
result_field
->
field_length
;
max_length
=
result_field
->
field_length
;
collation
.
set
(
result_field
->
charset
());
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
...
@@ -4891,6 +4892,7 @@ Item_func_sp::fix_length_and_dec()
...
@@ -4891,6 +4892,7 @@ Item_func_sp::fix_length_and_dec()
}
}
decimals
=
field
->
decimals
();
decimals
=
field
->
decimals
();
max_length
=
field
->
field_length
;
max_length
=
field
->
field_length
;
collation
.
set
(
field
->
charset
());
maybe_null
=
1
;
maybe_null
=
1
;
delete
field
;
delete
field
;
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
...
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