~mdcallag/+junk/5.1-map

« back to all changes in this revision

Viewing changes to mysql-test/t/partition_grant.test

  • Committer: msvensson at pilot
  • Date: 2007-04-24 09:11:45 UTC
  • mfrom: (2469.1.106)
  • Revision ID: sp1r-msvensson@pilot.blaudden-20070424091145-10463
Merge pilot.blaudden:/home/msvensson/mysql/my51-m-mysql_upgrade
into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
connection default;
53
53
 
54
54
revoke select,alter,drop on mysqltest_1.* from mysqltest_1@localhost;
 
55
drop table t1;
 
56
 
 
57
#
 
58
# Bug #23675 Partitions: possible security breach via alter 
 
59
#
 
60
 
 
61
create table t1 (s1 int);
 
62
insert into t1 values (1);
 
63
grant alter on mysqltest_1.* to mysqltest_1@localhost;
 
64
connect (conn4,localhost,mysqltest_1,,mysqltest_1);
 
65
connection conn4;
 
66
--error 1514
 
67
alter table t1 partition by list (s1) (partition p1 values in (2));
 
68
connection default;
 
69
grant select, alter on mysqltest_1.* to mysqltest_1@localhost;
 
70
disconnect conn4;
 
71
connect (conn5,localhost,mysqltest_1,,mysqltest_1);
 
72
--error 1514
 
73
alter table t1 partition by list (s1) (partition p1 values in (2));
 
74
disconnect conn5;
 
75
connection default;
 
76
drop table t1;
 
77
 
55
78
drop user mysqltest_1@localhost;
56
 
drop table t1;
57
79
drop schema mysqltest_1;
58
80
 
59
81
--echo End of 5.1 tests