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
63a2b47d
Commit
63a2b47d
authored
Mar 17, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
635db0ec
cc9e66f5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
47 deletions
+57
-47
mysql-test/r/sp.result
mysql-test/r/sp.result
+0
-22
mysql-test/r/sp_trans.result
mysql-test/r/sp_trans.result
+22
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+0
-25
mysql-test/t/sp_trans.test
mysql-test/t/sp_trans.test
+35
-0
No files found.
mysql-test/r/sp.result
View file @
63a2b47d
...
@@ -2778,25 +2778,3 @@ a
...
@@ -2778,25 +2778,3 @@ 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/r/sp_trans.result
0 → 100644
View file @
63a2b47d
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;
select * from t1;
a
2
call sp1();
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
set autocommit=1;
select * from t1;
a
2
drop table t1;
drop procedure sp1;
mysql-test/t/sp.test
View file @
63a2b47d
...
@@ -3390,28 +3390,3 @@ delete from t1|
...
@@ -3390,28 +3390,3 @@ delete from t1|
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
;
mysql-test/t/sp_trans.test
0 → 100644
View file @
63a2b47d
#
# tests that require InnoDB...
#
--
source
include
/
have_innodb
.
inc
#
# 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
;
select
*
from
t1
;
#
# when CALL will be fixed to not start a transaction, the error should
# go away
--
error
1192
call
sp1
();
set
autocommit
=
1
;
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