~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/suite/funcs_1/triggers/triggers_03e_prepare.inc

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        select current_user;
40
40
        show triggers;
41
41
        grant  select, insert, update ,trigger
42
 
                on priv_db.t1 to test_yesprivs@localhost 
 
42
                on priv_db.t1 to test_yesprivs@localhost
43
43
                with grant option;
44
44
        grant  select
45
45
                on priv_db.t1 to test_useprivs@localhost;
71
71
 
72
72
        connection yes_privs;
73
73
        select current_user;
74
 
        --error 1142
 
74
        --error ER_TABLEACCESS_DENIED_ERROR
75
75
        execute ins1;
76
76
        select f1 from t1 order by f1;
77
77
        prepare ins1 from 'insert into t1 (f1) values (''insert4-no'')';
79
79
        connection use_privs;
80
80
        select current_user;
81
81
        prepare ins1 from 'insert into t1 (f1) values (''insert5-no'')';
82
 
        --error 1142
 
82
        --error ER_TABLEACCESS_DENIED_ERROR
83
83
        execute ins1;
84
84
        select f1 from t1 order by f1;
85
85
 
107
107
 
108
108
        connection yes_privs;
109
109
        select current_user;
110
 
        --error 1142
 
110
        --error ER_TABLEACCESS_DENIED_ERROR
111
111
        execute ins1;
112
112
        select f1 from t1 order by f1;
113
113
 
114
114
        connection use_privs;
115
115
        select current_user;
116
 
        --error 1142
 
116
        --error ER_TABLEACCESS_DENIED_ERROR
117
117
        execute ins1;
118
118
        select f1 from t1 order by f1;
119
119
 
170
170
        --enable_warnings
171
171
 
172
172
 
173
 
# general Cleanup 
 
173
# general Cleanup
174
174
        --disable_warnings
175
175
        drop database if exists priv_db;
176
176
        drop user test_yesprivs@localhost;