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
b7310403
Commit
b7310403
authored
Dec 05, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes.
parent
4cc04190
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
46 deletions
+46
-46
mysql-test/r/sp-error.result
mysql-test/r/sp-error.result
+2
-2
mysql-test/r/variables.result
mysql-test/r/variables.result
+1
-1
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+43
-43
No files found.
mysql-test/r/sp-error.result
View file @
b7310403
...
...
@@ -35,7 +35,7 @@ call foo();
ERROR 42000: PROCEDURE foo does not exist
drop procedure if exists foo;
Warnings:
Warning 128
7
PROCEDURE foo does not exist
Warning 128
8
PROCEDURE foo does not exist
show create procedure foo;
ERROR 42000: PROCEDURE foo does not exist
create procedure foo()
...
...
@@ -71,7 +71,7 @@ declare y int;
set x = y;
end;
Warnings:
Warning 129
3
Referring to uninitialized variable y
Warning 129
4
Referring to uninitialized variable y
drop procedure foo;
create procedure foo()
begin
...
...
mysql-test/r/variables.result
View file @
b7310403
...
...
@@ -360,7 +360,7 @@ set sql_log_bin=1;
set sql_log_off=1;
set sql_log_update=1;
Warnings:
Note 129
7
The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored.
Note 129
8
The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored.
set sql_low_priority_updates=1;
set sql_max_join_size=200;
select @@sql_max_join_size,@@max_join_size;
...
...
mysql-test/t/sp-error.test
View file @
b7310403
...
...
@@ -32,18 +32,18 @@ create function func1() returns int
return
42
|
# Can't create recursively
--
error
128
5
--
error
128
6
create
procedure
foo
()
create
procedure
bar
()
set
@
x
=
3
|
--
error
128
5
--
error
128
6
create
procedure
foo
()
create
function
bar
()
returns
double
return
2.3
|
# Already exists
--
error
128
6
--
error
128
7
create
procedure
proc1
()
set
@
x
=
42
|
--
error
128
6
--
error
128
7
create
function
func1
()
returns
int
return
42
|
...
...
@@ -51,39 +51,39 @@ drop procedure proc1|
drop
function
func1
|
# Does not exist
--
error
128
7
--
error
128
8
alter
procedure
foo
|
--
error
128
7
--
error
128
8
alter
function
foo
|
--
error
128
7
--
error
128
8
drop
procedure
foo
|
--
error
128
7
--
error
128
8
drop
function
foo
|
--
error
128
7
--
error
128
8
call
foo
()
|
drop
procedure
if
exists
foo
|
--
error
128
7
--
error
128
8
show
create
procedure
foo
|
# LEAVE/ITERATE with no match
--
error
129
0
--
error
129
1
create
procedure
foo
()
foo
:
loop
leave
bar
;
end
loop
|
--
error
129
0
--
error
129
1
create
procedure
foo
()
foo
:
loop
iterate
bar
;
end
loop
|
--
error
129
0
--
error
129
1
create
procedure
foo
()
foo
:
begin
iterate
foo
;
end
|
# Redefining label
--
error
129
1
--
error
129
2
create
procedure
foo
()
foo
:
loop
foo
:
loop
...
...
@@ -92,7 +92,7 @@ foo: loop
end
loop
foo
|
# End label mismatch
--
error
129
2
--
error
129
3
create
procedure
foo
()
foo
:
loop
set
@
x
=
2
;
...
...
@@ -113,17 +113,17 @@ begin
select
name
from
mysql
.
proc
;
select
type
from
mysql
.
proc
;
end
|
--
error
129
4
--
error
129
5
call
foo
()
|
drop
procedure
foo
|
# RETURN in FUNCTION only
--
error
129
5
--
error
129
6
create
procedure
foo
()
return
42
|
# Doesn't allow queries in FUNCTIONs (for now :-( )
--
error
129
6
--
error
129
7
create
function
foo
()
returns
int
begin
declare
x
int
;
...
...
@@ -137,19 +137,19 @@ create procedure p(x int)
create
function
f
(
x
int
)
returns
int
return
x
+
42
|
--
error
130
0
--
error
130
1
call
p
()
|
--
error
130
0
--
error
130
1
call
p
(
1
,
2
)
|
--
error
130
0
--
error
130
1
select
f
()
|
--
error
130
0
--
error
130
1
select
f
(
1
,
2
)
|
drop
procedure
p
|
drop
function
f
|
--
error
130
1
--
error
130
2
create
procedure
p
(
val
int
,
out
res
int
)
begin
declare
x
int
default
0
;
...
...
@@ -163,7 +163,7 @@ begin
end
if
;
end
|
--
error
130
1
--
error
130
2
create
procedure
p
(
val
int
,
out
res
int
)
begin
declare
x
int
default
0
;
...
...
@@ -178,7 +178,7 @@ begin
end
if
;
end
|
--
error
130
2
--
error
130
3
create
function
f
(
val
int
)
returns
int
begin
declare
x
int
;
...
...
@@ -196,12 +196,12 @@ begin
end
if
;
end
|
--
error
130
3
--
error
130
4
select
f
(
10
)
|
drop
function
f
|
--
error
130
4
--
error
130
5
create
procedure
p
()
begin
declare
c
cursor
for
insert
into
test
.
t1
values
(
"foo"
,
42
);
...
...
@@ -210,7 +210,7 @@ begin
close
c
;
end
|
--
error
130
5
--
error
130
6
create
procedure
p
()
begin
declare
x
int
;
...
...
@@ -220,7 +220,7 @@ begin
close
c
;
end
|
--
error
130
6
--
error
130
7
create
procedure
p
()
begin
declare
c
cursor
for
select
*
from
test
.
t
;
...
...
@@ -242,7 +242,7 @@ begin
open
c
;
close
c
;
end
|
--
error
130
7
--
error
130
8
call
p
()
|
drop
procedure
p
|
...
...
@@ -254,11 +254,11 @@ begin
close
c
;
close
c
;
end
|
--
error
130
8
--
error
130
9
call
p
()
|
drop
procedure
p
|
--
error
128
7
--
error
128
8
alter
procedure
bar3
sql
security
invoker
|
--
error
1059
alter
procedure
bar3
name
...
...
@@ -272,7 +272,7 @@ drop table if exists t1|
create
table
t1
(
val
int
,
x
float
)
|
insert
into
t1
values
(
42
,
3.1
),
(
19
,
1.2
)
|
--
error
13
09
--
error
13
10
create
procedure
p
()
begin
declare
c
cursor
for
select
*
from
t1
;
...
...
@@ -292,7 +292,7 @@ begin
fetch
c
into
x
;
close
c
;
end
|
--
error
131
0
--
error
131
1
call
p
()
|
drop
procedure
p
|
...
...
@@ -307,34 +307,34 @@ begin
fetch
c
into
x
,
y
,
z
;
close
c
;
end
|
--
error
131
0
--
error
131
1
call
p
()
|
drop
procedure
p
|
--
error
131
2
--
error
131
3
create
procedure
p
(
in
x
int
,
x
char
(
10
))
begin
end
|
--
error
131
2
--
error
131
3
create
function
p
(
x
int
,
x
char
(
10
))
begin
end
|
--
error
131
3
--
error
131
4
create
procedure
p
()
begin
declare
x
float
;
declare
x
int
;
end
|
--
error
131
4
--
error
131
5
create
procedure
p
()
begin
declare
c
condition
for
1064
;
declare
c
condition
for
1065
;
end
|
--
error
131
5
--
error
131
6
create
procedure
p
()
begin
declare
c
cursor
for
select
*
from
t1
;
...
...
@@ -358,13 +358,13 @@ drop procedure bug1965|
#
# BUG#1966
#
--
error
13
09
--
error
13
10
select
1
into
a
|
#
# BUG#336
#
--
error
131
7
--
error
131
8
create
procedure
bug336
(
id
char
(
16
))
begin
declare
x
int
;
...
...
@@ -374,7 +374,7 @@ end|
#
# BUG#1654
#
--
error
129
6
--
error
129
7
create
function
bug1654
()
returns
int
return
(
select
sum
(
t
.
data
)
from
test
.
t2
t
)
|
...
...
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