~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/funcs_1/r/myisam_storedproc_06.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
revoke create routine on db_storedproc_1.* from 'user_1'@'localhost';
80
80
flush privileges;
81
81
DROP PROCEDURE IF EXISTS sp1;
82
 
connect(localhost,user_1,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
83
82
        
84
83
user_1@localhost        db_storedproc_1
85
84
USE db_storedproc_1;
92
91
        
93
92
root@localhost  db_storedproc_1
94
93
GRANT CREATE ROUTINE ON db_storedproc_1.* TO 'user_1'@'localhost';
95
 
connect(localhost,user_1,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
96
94
        
97
95
user_1@localhost        db_storedproc_1
98
96
USE db_storedproc_1;
113
111
--------------------------------------------------------------------------------
114
112
grant create routine on db_storedproc_1.* to 'user_1'@'localhost';
115
113
flush privileges;
116
 
connect(localhost,user_1,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
117
114
        
118
115
user_1@localhost        db_storedproc_1
119
116
DROP PROCEDURE IF EXISTS sp3;
132
129
drop user 'user_1'@'localhost';
133
130
DROP PROCEDURE sp3;
134
131
DROP FUNCTION fn1;
135
 
Warnings:
136
 
Warning 1403    There is no such grant defined for user 'user_1' on host 'localhost' on routine 'fn1'
137
132
 
138
133
Testcase 3.1.6.4:
139
134
-----------------
150
145
BEGIN
151
146
SELECT * from db_storedproc_1.t6 where t6.f2= 'xyz';
152
147
END//
153
 
connect(localhost,user_1,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
154
148
        
155
149
user_1@localhost        db_storedproc_1
156
150
USE db_storedproc_1;
192
186
grant SELECT on db_storedproc_1.* to 'user_2'@'localhost';
193
187
grant execute on db_storedproc_1.* to 'user_2'@'localhost';
194
188
flush privileges;
195
 
connect(localhost,user_1,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
196
189
        
197
190
user_1@localhost        db_storedproc_1
198
191
CREATE PROCEDURE sp5_s_i () sql security definer
208
201
BEGIN
209
202
insert into db_storedproc_1.t3165 values ('inserted', 'from sp5_ins', 1000);
210
203
END//
211
 
connect(localhost,user_2,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
212
204
        
213
205
user_2@localhost        db_storedproc_1
214
206
CALL sp5_s_i();
306
298
GRANT SELECT  ON db_storedproc_1.* TO 'user_2'@'localhost';
307
299
GRANT EXECUTE ON db_storedproc_1.* TO 'user_2'@'localhost';
308
300
FLUSH PRIVILEGES;
309
 
connect(localhost,user_1,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
310
301
        
311
302
user_1@localhost        db_storedproc_1
312
303
CREATE PROCEDURE sp3166_s_i () SQL SECURITY INVOKER
322
313
BEGIN
323
314
insert into db_storedproc_1.t3166 values ('inserted from sp3166_ins');
324
315
END//
325
 
connect(localhost,user_2,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
326
316
        
327
317
user_2@localhost        db_storedproc_1
328
318
CALL sp3166_s_i();
341
331
inserted outside SP
342
332
GRANT INSERT  ON db_storedproc_1.* TO 'user_2'@'localhost';
343
333
FLUSH PRIVILEGES;
344
 
connect(localhost,user_2,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
345
334
        
346
335
user_2@localhost        db_storedproc_1
347
336
CALL sp3166_s_i();
362
351
inserted from sp3166_ins
363
352
REVOKE SELECT ON db_storedproc_1.* FROM 'user_2'@'localhost';
364
353
FLUSH PRIVILEGES;
365
 
connect(localhost,user_2,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
366
354
        
367
355
user_2@localhost        db_storedproc_1
368
356
CALL sp3166_s_i();
380
368
root@localhost  db_storedproc_1
381
369
REVOKE EXECUTE on db_storedproc_1.* FROM 'user_2'@'localhost';
382
370
FLUSH PRIVILEGES;
383
 
connect(localhost,user_2,,db_storedproc_1,MYSQL_PORT,MYSQL_SOCK);
384
371
        
385
372
user_2@localhost        db_storedproc_1
386
373
CALL sp3166_s_i();