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
26ec49f1
Commit
26ec49f1
authored
Jun 15, 2004
by
pem@mysql.comhem.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed BUG#3368: Stored procedure crash if group_concat(variable).
parent
00d5d925
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
mysql-test/r/sp.result
mysql-test/r/sp.result
+15
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+19
-0
sql/item.h
sql/item.h
+1
-1
No files found.
mysql-test/r/sp.result
View file @
26ec49f1
...
@@ -1372,6 +1372,21 @@ select 1+2|
...
@@ -1372,6 +1372,21 @@ select 1+2|
1+2
1+2
3
3
drop procedure bug3843|
drop procedure bug3843|
drop table if exists t3|
create table t3 ( s1 char(10) )|
insert into t3 values ('a'), ('b')|
create procedure bug3368(v char(10))
begin
select group_concat(v) from t3;
end|
call bug3368('x')|
group_concat(v)
x,x
call bug3368('yz')|
group_concat(v)
yz,yz
drop procedure bug3368|
drop table t3|
drop table if exists fac|
drop table if exists fac|
create table fac (n int unsigned not null primary key, f bigint unsigned)|
create table fac (n int unsigned not null primary key, f bigint unsigned)|
create procedure ifac(n int unsigned)
create procedure ifac(n int unsigned)
...
...
mysql-test/t/sp.test
View file @
26ec49f1
...
@@ -1573,6 +1573,25 @@ select 1+2|
...
@@ -1573,6 +1573,25 @@ select 1+2|
drop
procedure
bug3843
|
drop
procedure
bug3843
|
#
# BUG#3368
#
--
disable_warnings
drop
table
if
exists
t3
|
--
enable_warnings
create
table
t3
(
s1
char
(
10
)
)
|
insert
into
t3
values
(
'a'
),
(
'b'
)
|
create
procedure
bug3368
(
v
char
(
10
))
begin
select
group_concat
(
v
)
from
t3
;
end
|
call
bug3368
(
'x'
)
|
call
bug3368
(
'yz'
)
|
drop
procedure
bug3368
|
drop
table
t3
|
#
#
# Some "real" examples
# Some "real" examples
...
...
sql/item.h
View file @
26ec49f1
...
@@ -332,7 +332,7 @@ class Item_splocal : public Item
...
@@ -332,7 +332,7 @@ class Item_splocal : public Item
inline
bool
const_item
()
const
inline
bool
const_item
()
const
{
{
return
FALS
E
;
return
TRU
E
;
}
}
inline
int
save_in_field
(
Field
*
field
,
bool
no_conversions
)
inline
int
save_in_field
(
Field
*
field
,
bool
no_conversions
)
...
...
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