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
94d4b001
Commit
94d4b001
authored
Feb 01, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/extern/mysql/bk/mysql-5.0
into mysql.com:/extern/mysql/work/cantrepeat/mysql-5.0
parents
86733db8
fd61a0c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
0 deletions
+89
-0
mysql-test/r/sp-error.result
mysql-test/r/sp-error.result
+29
-0
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+60
-0
No files found.
mysql-test/r/sp-error.result
View file @
94d4b001
...
...
@@ -1147,3 +1147,32 @@ show procedure status;
Db Name Type Definer Modified Created Security_type Comment
test bug15658 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER
drop procedure ` bug15658`;
drop function if exists bug14270;
drop table if exists t1;
create table t1 (s1 int primary key);
create function bug14270() returns int
begin
load index into cache t1;
return 1;
end|
ERROR 0A000: Not allowed to return a result set from a function
create function bug14270() returns int
begin
cache index t1 key (`primary`) in keycache1;
return 1;
end|
ERROR 0A000: Not allowed to return a result set from a function
drop table t1;
drop procedure if exists bug15091;
create procedure bug15091()
begin
declare selectstr varchar(6000) default ' ';
declare conditionstr varchar(5000) default '';
set selectstr = concat(selectstr,
' and ',
c.operatorid,
'in (',conditionstr, ')');
end|
call bug15091();
ERROR 42S02: Unknown table 'c' in field list
drop procedure bug15091;
mysql-test/t/sp-error.test
View file @
94d4b001
...
...
@@ -1643,6 +1643,66 @@ show procedure status;
drop
procedure
` bug15658`
;
#
# BUG#14270: Stored procedures: crash if load index
#
--
disable_warnings
drop
function
if
exists
bug14270
;
drop
table
if
exists
t1
;
--
enable_warnings
create
table
t1
(
s1
int
primary
key
);
delimiter
|
;
--
error
ER_SP_NO_RETSET
create
function
bug14270
()
returns
int
begin
load
index
into
cache
t1
;
return
1
;
end
|
--
error
ER_SP_NO_RETSET
create
function
bug14270
()
returns
int
begin
cache
index
t1
key
(
`primary`
)
in
keycache1
;
return
1
;
end
|
delimiter
;
|
drop
table
t1
;
#
# BUG#15091: Sp Returns Unknown error in order clause....and
# there is no order by clause
#
--
disable_warnings
drop
procedure
if
exists
bug15091
;
--
enable_warnings
delimiter
|
;
create
procedure
bug15091
()
begin
declare
selectstr
varchar
(
6000
)
default
' '
;
declare
conditionstr
varchar
(
5000
)
default
''
;
set
selectstr
=
concat
(
selectstr
,
' and '
,
c
.
operatorid
,
'in ('
,
conditionstr
,
')'
);
end
|
delimiter
;
|
# The error message used to be:
# ERROR 1109 (42S02): Unknown table 'c' in order clause
# but is now rephrased to something less misleading:
# ERROR 1109 (42S02): Unknown table 'c' in field list
--
error
ER_UNKNOWN_TABLE
call
bug15091
();
drop
procedure
bug15091
;
#
# BUG#NNNN: New bug synopsis
#
...
...
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