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
b8e28ff9
Commit
b8e28ff9
authored
Mar 09, 2005
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing post-merge errors
parent
b2c77c1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
52 deletions
+49
-52
mysql-test/r/sp.result
mysql-test/r/sp.result
+22
-24
mysql-test/t/sp.test
mysql-test/t/sp.test
+27
-28
No files found.
mysql-test/r/sp.result
View file @
b8e28ff9
...
@@ -2697,30 +2697,6 @@ call bug7992()|
...
@@ -2697,30 +2697,6 @@ call bug7992()|
call bug7992()|
call bug7992()|
drop procedure bug7992|
drop procedure bug7992|
drop table t3|
drop table t3|
drop table t2;
drop table t1;
drop procedure if exists sp1;
create table t1 (a int) engine=innodb|
create procedure sp1 ()
begin
truncate table t1; insert t1 values (1); rollback;
end
|
set autocommit=0;
insert t1 values (2);
call sp1();
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
commit;
set autocommit=1;
select * from t1;
a
2
call sp1();
select * from t1;
a
1
drop table t1;
drop procedure sp1;
create table t3 (
create table t3 (
lpitnumber int(11) default null,
lpitnumber int(11) default null,
lrecordtype int(11) default null
lrecordtype int(11) default null
...
@@ -2780,3 +2756,25 @@ a
...
@@ -2780,3 +2756,25 @@ a
drop procedure bug8937|
drop procedure bug8937|
delete from t1|
delete from t1|
drop table t1,t2;
drop table t1,t2;
drop procedure if exists sp1;
create table t1 (a int) engine=innodb|
create procedure sp1 ()
begin
truncate table t1; insert t1 values (1); rollback;
end
|
set autocommit=0;
insert t1 values (2);
call sp1();
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
commit;
set autocommit=1;
select * from t1;
a
2
call sp1();
select * from t1;
a
1
drop table t1;
drop procedure sp1;
mysql-test/t/sp.test
View file @
b8e28ff9
...
@@ -3277,34 +3277,6 @@ call bug7992()|
...
@@ -3277,34 +3277,6 @@ call bug7992()|
drop
procedure
bug7992
|
drop
procedure
bug7992
|
drop
table
t3
|
drop
table
t3
|
delimiter
;
|
delimiter
;
|
drop
table
t2
;
drop
table
t1
;
#
# BUG#8850
#
--
disable_warnings
drop
procedure
if
exists
sp1
;
--
enable_warnings
delimiter
|
;
create
table
t1
(
a
int
)
engine
=
innodb
|
create
procedure
sp1
()
begin
truncate
table
t1
;
insert
t1
values
(
1
);
rollback
;
end
|
delimiter
;
|
set
autocommit
=
0
;
insert
t1
values
(
2
);
--
error
1192
call
sp1
();
commit
;
set
autocommit
=
1
;
select
*
from
t1
;
call
sp1
();
select
*
from
t1
;
drop
table
t1
;
drop
procedure
sp1
;
#
#
# BUG#8849: problem with insert statement with table alias's
# BUG#8849: problem with insert statement with table alias's
...
@@ -3312,6 +3284,7 @@ drop procedure sp1;
...
@@ -3312,6 +3284,7 @@ drop procedure sp1;
# Rolling back changes to AND/OR structure of ON and WHERE clauses in SP
# Rolling back changes to AND/OR structure of ON and WHERE clauses in SP
#
#
delimiter
|
;
create
table
t3
(
create
table
t3
(
lpitnumber
int
(
11
)
default
null
,
lpitnumber
int
(
11
)
default
null
,
lrecordtype
int
(
11
)
default
null
lrecordtype
int
(
11
)
default
null
...
@@ -3387,3 +3360,29 @@ delete from t1|
...
@@ -3387,3 +3360,29 @@ delete from t1|
# practical, or create table t3, t3 etc temporarily (and drop them).
# practical, or create table t3, t3 etc temporarily (and drop them).
delimiter
;
|
delimiter
;
|
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# BUG#8850
#
--
disable_warnings
drop
procedure
if
exists
sp1
;
--
enable_warnings
delimiter
|
;
create
table
t1
(
a
int
)
engine
=
innodb
|
create
procedure
sp1
()
begin
truncate
table
t1
;
insert
t1
values
(
1
);
rollback
;
end
|
delimiter
;
|
set
autocommit
=
0
;
insert
t1
values
(
2
);
--
error
1192
call
sp1
();
commit
;
set
autocommit
=
1
;
select
*
from
t1
;
call
sp1
();
select
*
from
t1
;
drop
table
t1
;
drop
procedure
sp1
;
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