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
7ceefd2b
Commit
7ceefd2b
authored
Apr 07, 2007
by
holyfoot/hf@mysql.com/hfmain.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after-merging fix
parent
6ffa4b9c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
87 deletions
+108
-87
mysql-test/r/events_trans.result
mysql-test/r/events_trans.result
+0
-41
mysql-test/r/events_trans_notembedded.result
mysql-test/r/events_trans_notembedded.result
+45
-0
mysql-test/r/windows.result
mysql-test/r/windows.result
+2
-2
mysql-test/t/events_trans.test
mysql-test/t/events_trans.test
+0
-44
mysql-test/t/events_trans_notembedded.test
mysql-test/t/events_trans_notembedded.test
+61
-0
No files found.
mysql-test/r/events_trans.result
View file @
7ceefd2b
drop database if exists events_test;
drop database if exists events_test;
drop database if exists mysqltest_db2;
drop database if exists mysqltest_no_such_database;
drop database if exists mysqltest_no_such_database;
create database events_test;
create database events_test;
use events_test;
use events_test;
...
@@ -116,44 +115,4 @@ a
...
@@ -116,44 +115,4 @@ a
OK: create event: database does not exist
OK: create event: database does not exist
delete from t1;
delete from t1;
commit work;
commit work;
grant create, insert, select, delete on mysqltest_db2.*
to mysqltest_user1@localhost;
create database mysqltest_db2;
set autocommit=off;
select @@autocommit;
@@autocommit
0
create table t1 (a varchar(255)) engine=innodb;
begin work;
insert into t1 (a) values ("OK: create event: insufficient privileges");
create event e1 on schedule every 1 day do select 1;
ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
rollback work;
select * from t1;
a
OK: create event: insufficient privileges
delete from t1;
commit work;
begin work;
insert into t1 (a) values ("OK: alter event: insufficient privileges");
alter event e1 on schedule every 1 day do select 1;
ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
rollback work;
select * from t1;
a
OK: alter event: insufficient privileges
delete from t1;
commit work;
begin work;
insert into t1 (a) values ("OK: drop event: insufficient privileges");
drop event e1;
ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
rollback work;
select * from t1;
a
OK: drop event: insufficient privileges
delete from t1;
commit work;
drop user mysqltest_user1@localhost;
drop database mysqltest_db2;
drop database events_test;
drop database events_test;
mysql-test/r/events_trans_notembedded.result
0 → 100644
View file @
7ceefd2b
drop database if exists events_test;
drop database if exists mysqltest_db2;
create database events_test;
use events_test;
grant create, insert, select, delete on mysqltest_db2.*
to mysqltest_user1@localhost;
create database mysqltest_db2;
set autocommit=off;
select @@autocommit;
@@autocommit
0
create table t1 (a varchar(255)) engine=innodb;
begin work;
insert into t1 (a) values ("OK: create event: insufficient privileges");
create event e1 on schedule every 1 day do select 1;
ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
rollback work;
select * from t1;
a
OK: create event: insufficient privileges
delete from t1;
commit work;
begin work;
insert into t1 (a) values ("OK: alter event: insufficient privileges");
alter event e1 on schedule every 1 day do select 1;
ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
rollback work;
select * from t1;
a
OK: alter event: insufficient privileges
delete from t1;
commit work;
begin work;
insert into t1 (a) values ("OK: drop event: insufficient privileges");
drop event e1;
ERROR 42000: Access denied for user 'mysqltest_user1'@'localhost' to database 'mysqltest_db2'
rollback work;
select * from t1;
a
OK: drop event: insufficient privileges
delete from t1;
commit work;
drop user mysqltest_user1@localhost;
drop database mysqltest_db2;
drop database events_test;
mysql-test/r/windows.result
View file @
7ceefd2b
...
@@ -35,9 +35,9 @@ PARTITION BY RANGE (MONTH(SALES_DATE))
...
@@ -35,9 +35,9 @@ PARTITION BY RANGE (MONTH(SALES_DATE))
(
(
PARTITION p0 VALUES LESS THAN (2) ENGINE=INNODB
PARTITION p0 VALUES LESS THAN (2) ENGINE=INNODB
data DIRECTORY='c:/tmp/'
data DIRECTORY='c:/tmp/'
index DIRECTORY = 'c:/tmp/',
index DIRECTORY = 'c:/tmp/',
PARTITION p1 VALUES LESS THAN (3) ENGINE=INNODB
PARTITION p1 VALUES LESS THAN (3) ENGINE=INNODB
data DIRECTORY='c:/tmp/'
data DIRECTORY='c:/tmp/'
index DIRECTORY = 'c:/tmp/'
index DIRECTORY = 'c:/tmp/'
);
);
drop table t1;
drop table t1;
mysql-test/t/events_trans.test
View file @
7ceefd2b
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
--
disable_warnings
--
disable_warnings
drop
database
if
exists
events_test
;
drop
database
if
exists
events_test
;
drop
database
if
exists
mysqltest_db2
;
drop
database
if
exists
mysqltest_no_such_database
;
drop
database
if
exists
mysqltest_no_such_database
;
--
enable_warnings
--
enable_warnings
create
database
events_test
;
create
database
events_test
;
...
@@ -108,49 +107,6 @@ rollback work;
...
@@ -108,49 +107,6 @@ rollback work;
select
*
from
t1
;
select
*
from
t1
;
delete
from
t1
;
delete
from
t1
;
commit
work
;
commit
work
;
#
# Privilege checks
#
grant
create
,
insert
,
select
,
delete
on
mysqltest_db2
.*
to
mysqltest_user1
@
localhost
;
create
database
mysqltest_db2
;
connect
(
conn1
,
localhost
,
mysqltest_user1
,,
mysqltest_db2
);
set
autocommit
=
off
;
# Sanity check
select
@@
autocommit
;
create
table
t1
(
a
varchar
(
255
))
engine
=
innodb
;
# Not enough privileges to CREATE EVENT
begin
work
;
insert
into
t1
(
a
)
values
(
"OK: create event: insufficient privileges"
);
--
error
ER_DBACCESS_DENIED_ERROR
create
event
e1
on
schedule
every
1
day
do
select
1
;
rollback
work
;
select
*
from
t1
;
delete
from
t1
;
commit
work
;
# Not enough privileges to ALTER EVENT
begin
work
;
insert
into
t1
(
a
)
values
(
"OK: alter event: insufficient privileges"
);
--
error
ER_DBACCESS_DENIED_ERROR
alter
event
e1
on
schedule
every
1
day
do
select
1
;
rollback
work
;
select
*
from
t1
;
delete
from
t1
;
commit
work
;
# Not enough privileges to DROP EVENT
begin
work
;
insert
into
t1
(
a
)
values
(
"OK: drop event: insufficient privileges"
);
--
error
ER_DBACCESS_DENIED_ERROR
drop
event
e1
;
rollback
work
;
select
*
from
t1
;
delete
from
t1
;
commit
work
;
# Cleanup
disconnect
conn1
;
connection
default
;
drop
user
mysqltest_user1
@
localhost
;
drop
database
mysqltest_db2
;
#
#
# Cleanup
# Cleanup
...
...
mysql-test/t/events_trans_notembedded.test
0 → 100644
View file @
7ceefd2b
#
# Tests that require transactions
#
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
--
disable_warnings
drop
database
if
exists
events_test
;
drop
database
if
exists
mysqltest_db2
;
--
enable_warnings
create
database
events_test
;
use
events_test
;
#
# Privilege checks
#
grant
create
,
insert
,
select
,
delete
on
mysqltest_db2
.*
to
mysqltest_user1
@
localhost
;
create
database
mysqltest_db2
;
connect
(
conn1
,
localhost
,
mysqltest_user1
,,
mysqltest_db2
);
set
autocommit
=
off
;
# Sanity check
select
@@
autocommit
;
create
table
t1
(
a
varchar
(
255
))
engine
=
innodb
;
# Not enough privileges to CREATE EVENT
begin
work
;
insert
into
t1
(
a
)
values
(
"OK: create event: insufficient privileges"
);
--
error
ER_DBACCESS_DENIED_ERROR
create
event
e1
on
schedule
every
1
day
do
select
1
;
rollback
work
;
select
*
from
t1
;
delete
from
t1
;
commit
work
;
# Not enough privileges to ALTER EVENT
begin
work
;
insert
into
t1
(
a
)
values
(
"OK: alter event: insufficient privileges"
);
--
error
ER_DBACCESS_DENIED_ERROR
alter
event
e1
on
schedule
every
1
day
do
select
1
;
rollback
work
;
select
*
from
t1
;
delete
from
t1
;
commit
work
;
# Not enough privileges to DROP EVENT
begin
work
;
insert
into
t1
(
a
)
values
(
"OK: drop event: insufficient privileges"
);
--
error
ER_DBACCESS_DENIED_ERROR
drop
event
e1
;
rollback
work
;
select
*
from
t1
;
delete
from
t1
;
commit
work
;
# Cleanup
disconnect
conn1
;
connection
default
;
drop
user
mysqltest_user1
@
localhost
;
drop
database
mysqltest_db2
;
#
# Cleanup
#
drop
database
events_test
;
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