~vkolesnikov/pbxt/pbxt-preload-test-bug

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/r/sp-error.result

  • Committer: paul-mccullagh
  • Date: 2008-03-10 11:36:34 UTC
  • Revision ID: paul-mccullagh-417ebf175a9c8ee6e5b3777d9e2398e1fb197391
Implemented full durability

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
unlock tables|
293
293
drop procedure p|
294
294
lock tables t1 read, mysql.proc write|
295
 
ERROR HY000: You can't combine write-locking of system 'mysql.proc' table with other tables
 
295
ERROR HY000: You can't combine write-locking of system tables with other tables or lock types
296
296
lock tables mysql.proc write, mysql.user write|
297
 
ERROR HY000: You can't combine write-locking of system 'mysql.proc' table with other tables
 
297
ERROR HY000: You can't combine write-locking of system tables with other tables or lock types
298
298
lock tables t1 read, mysql.proc read|
299
299
unlock tables|
300
300
lock tables mysql.proc write|
682
682
begin
683
683
end|
684
684
show procedure status like 'bug17015%'|
685
 
Db      Name    Type    Definer Modified        Created Security_type   Comment
686
 
test    bug17015_0123456789012345678901234567890123456789012345678901234        PROCEDURE       root@localhost  0000-00-00 00:00:00     0000-00-00 00:00:00     DEFINER 
 
685
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
 
686
test    bug17015_0123456789012345678901234567890123456789012345678901234        PROCEDURE       root@localhost  0000-00-00 00:00:00     0000-00-00 00:00:00     DEFINER         latin1  latin1_swedish_ci       latin1_swedish_ci
687
687
drop procedure bug17015_0123456789012345678901234567890123456789012345678901234|
688
688
drop procedure if exists bug10969|
689
689
create procedure bug10969()
982
982
CREATE FUNCTION bug_13627_f() returns int BEGIN create view v1 as select 1; return 1; END |
983
983
ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.
984
984
CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN alter view v1 as select 1; END |
985
 
ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.
 
985
ERROR 0A000: ALTER VIEW is not allowed in stored procedures
986
986
CREATE FUNCTION bug_13627_f() returns int BEGIN alter view v1 as select 1; return 1; END |
987
 
ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.
 
987
ERROR 0A000: ALTER VIEW is not allowed in stored procedures
988
988
CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop view v1; END |
989
989
ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.
990
990
CREATE FUNCTION bug_13627_f() returns int BEGIN drop view v1; return 1; END |
1030
1030
bug12329()
1031
1031
101
1032
1032
execute stmt1;
1033
 
ERROR HY000: Table 't2' was not locked with LOCK TABLES
 
1033
ERROR 42S02: Table 'test.t2' doesn't exist
1034
1034
deallocate prepare stmt1;
1035
1035
drop function bug12329;
1036
1036
drop table t1, t2;
1087
1087
ERROR 3D000: No database selected
1088
1088
use mysqltest2;
1089
1089
show procedure status;
1090
 
Db      Name    Type    Definer Modified        Created Security_type   Comment
1091
 
mysqltest2      p1      PROCEDURE       root@localhost  0000-00-00 00:00:00     0000-00-00 00:00:00     DEFINER 
 
1090
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
 
1091
mysqltest2      p1      PROCEDURE       root@localhost  0000-00-00 00:00:00     0000-00-00 00:00:00     DEFINER         latin1  latin1_swedish_ci       latin1_swedish_ci
1092
1092
drop database mysqltest2;
1093
1093
use test;
1094
1094
DROP FUNCTION IF EXISTS bug13012|
1128
1128
create function bug11555_1() returns int return (select max(i) from t1);
1129
1129
create function bug11555_2() returns int return bug11555_1();
1130
1130
create view v1 as select bug11555_1();
1131
 
ERROR 42S02: Table 'test.t1' doesn't exist
1132
1131
create view v2 as select bug11555_2();
1133
 
ERROR 42S02: Table 'test.t1' doesn't exist
1134
1132
create table t1 (i int);
1135
1133
create view v1 as select bug11555_1();
 
1134
ERROR 42S01: Table 'v1' already exists
1136
1135
create view v2 as select bug11555_2();
 
1136
ERROR 42S01: Table 'v2' already exists
1137
1137
create view v3 as select * from v1;
1138
1138
drop table t1;
1139
1139
select * from v1;
1143
1143
select * from v3;
1144
1144
ERROR HY000: View 'test.v3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
1145
1145
create view v4 as select * from v1;
1146
 
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
1147
 
drop view v1, v2, v3;
 
1146
drop view v1, v2, v3, v4;
1148
1147
drop function bug11555_1;
1149
1148
drop function bug11555_2;
1150
1149
create table t1 (i int);
1153
1152
create view v1 as select * from t1;
1154
1153
drop table t2;
1155
1154
insert into v1 values (1);
1156
 
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
 
1155
ERROR 42S02: Table 'test.t2' doesn't exist
1157
1156
drop trigger t1_ai;
1158
1157
create function bug11555_1() returns int return (select max(i) from t2);
1159
1158
create trigger t1_ai after insert on t1 for each row set @a:=bug11555_1();
1160
1159
insert into v1 values (2);
1161
 
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
 
1160
ERROR 42S02: Table 'test.t2' doesn't exist
1162
1161
drop function bug11555_1;
1163
1162
drop table t1;
1164
1163
drop view v1;
1178
1177
1
1179
1178
1
1180
1179
show procedure status;
1181
 
Db      Name    Type    Definer Modified        Created Security_type   Comment
1182
 
test     bug15658       PROCEDURE       root@localhost  0000-00-00 00:00:00     0000-00-00 00:00:00     DEFINER 
 
1180
Db      Name    Type    Definer Modified        Created Security_type   Comment character_set_client    collation_connection    Database Collation
 
1181
test     bug15658       PROCEDURE       root@localhost  0000-00-00 00:00:00     0000-00-00 00:00:00     DEFINER         latin1  latin1_swedish_ci       latin1_swedish_ci
1183
1182
drop procedure ` bug15658`;
1184
1183
drop function if exists bug14270;
1185
1184
drop table if exists t1;