⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sp-error.result

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 RESULT
📖 第 1 页 / 共 3 页
字号:
ERROR 42000: FUNCTION test.bug12995 does not existdrop procedure if exists bug12712;drop function if exists bug12712;create procedure bug12712()set session autocommit = 0;select @@autocommit;@@autocommit1set @au = @@autocommit;call bug12712();select @@autocommit;@@autocommit0set session autocommit = @au;create function bug12712()returns intbegincall bug12712();return 0;end|set @x = bug12712()|ERROR HY000: Not allowed to set autocommit from a stored function or triggerdrop procedure bug12712|drop function bug12712|create function bug12712()returns intbeginset session autocommit = 0;return 0;end|ERROR HY000: Not allowed to set autocommit from a stored function or triggercreate function bug12712()returns intbeginset @@autocommit = 0;return 0;end|ERROR HY000: Not allowed to set autocommit from a stored function or triggercreate function bug12712()returns intbeginset local autocommit = 0;return 0;end|ERROR HY000: Not allowed to set autocommit from a stored function or triggercreate trigger bug12712before insert on t1 for each row set session autocommit = 0;ERROR HY000: Not allowed to set autocommit from a stored function or triggerdrop procedure if exists bug13510_1|drop procedure if exists bug13510_2|drop procedure if exists bug13510_3|drop procedure if exists bug13510_4|create procedure bug13510_1()begindeclare password varchar(10);set password = 'foo1';select password;end|ERROR 42000: Variable 'password' must be quoted with `...`, or renamedset names='foo2'|ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1create procedure bug13510_2()begindeclare names varchar(10);set names = 'foo2';select names;end|ERROR 42000: Variable 'names' must be quoted with `...`, or renamedcreate procedure bug13510_3()begindeclare password varchar(10);set `password` = 'foo3';select password;end|create procedure bug13510_4()begindeclare names varchar(10);set `names` = 'foo4';select names;end|call bug13510_3()|passwordfoo3call bug13510_4()|namesfoo4drop procedure bug13510_3|drop procedure bug13510_4|drop function if exists bug_13627_f|CREATE TABLE t1 (a int)|CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN DROP TRIGGER test1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN DROP TRIGGER test1; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN load table t1 from master; END |ERROR 0A000: LOAD TABLE is not allowed in stored proceduresCREATE FUNCTION bug_13627_f() returns int BEGIN load table t1 from master; return 1; END |ERROR 0A000: LOAD TABLE is not allowed in stored proceduresCREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create table t2 (a int); END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN create table t2 (a int); return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create index t1_i on t1 (a); END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN create index t1_i on t1 (a); return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN alter table t1 add column  b int; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN alter table t1 add column  b int; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN rename table t1 to t2; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN rename table t1 to t2; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN truncate table t1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN truncate table t1; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop table t1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN drop table t1; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop index t1_i on t1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN drop index t1_i on t1; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN unlock tables; END |ERROR 0A000: UNLOCK is not allowed in stored proceduresCREATE FUNCTION bug_13627_f() returns int BEGIN unlock tables; return 1; END |ERROR 0A000: UNLOCK is not allowed in stored proceduresCREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN LOCK TABLE t1 READ; END |ERROR 0A000: LOCK is not allowed in stored proceduresCREATE FUNCTION bug_13627_f() returns int BEGIN LOCK TABLE t1 READ; return 1; END |ERROR 0A000: LOCK is not allowed in stored proceduresCREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create database mysqltest; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN create database mysqltest; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop database mysqltest; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN drop database mysqltest; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create user 'mysqltest_1'; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN create user 'mysqltest_1'; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop user 'mysqltest_1'; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN drop user 'mysqltest_1'; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN rename user 'mysqltest_2' to 'mysqltest_1'; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN rename user 'mysqltest_2' to 'mysqltest_1'; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create view v1 as select 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN create view v1 as select 1; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN alter view v1 as select 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN alter view v1 as select 1; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop view v1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE FUNCTION bug_13627_f() returns int BEGIN drop view v1; return 1; END |ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create trigger tr2 before insert on t1 for each row do select 1; END |ERROR 2F003: Can't create a TRIGGER from within another stored routineCREATE FUNCTION bug_13627_f() returns int BEGIN create trigger tr2 before insert on t1 for each row do select 1; return 1; END |ERROR 2F003: Can't create a TRIGGER from within another stored routineCREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN drop function bug_13627_f; END |ERROR HY000: Can't drop or alter a FUNCTION from within another stored routineCREATE FUNCTION bug_13627_f() returns int BEGIN drop function bug_13627_f; return 1; END |ERROR HY000: Can't drop or alter a FUNCTION from within another stored routineCREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW BEGIN create function f2 () returns int return 1; END |ERROR 2F003: Can't create a FUNCTION from within another stored routineCREATE FUNCTION bug_13627_f() returns int BEGIN create function f2 () returns int return 1; return 1; END |ERROR 2F003: Can't create a FUNCTION from within another stored routineCREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROWBEGINCREATE TEMPORARY TABLE t2 (a int);DROP TEMPORARY TABLE t2;END |CREATE FUNCTION bug_13627_f() returns intBEGINCREATE TEMPORARY TABLE t2 (a int);DROP TEMPORARY TABLE t2;return 1;END |drop table t1|drop function bug_13627_f|drop function if exists bug12329;Warnings:Note	1305	FUNCTION bug12329 does not existcreate table t1 as select 1 a;create table t2 as select 1 a;create function bug12329() returns int return (select a from t1);prepare stmt1 from 'select bug12329()';execute stmt1;bug12329()1drop function bug12329;create function bug12329() returns int return (select a+100 from t2);select bug12329();bug12329()101execute stmt1;ERROR HY000: Table 't2' was not locked with LOCK TABLESdeallocate prepare stmt1;drop function bug12329;drop table t1, t2;create database mysqltest1;use mysqltest1;drop database mysqltest1;create function f1() returns int return 1;ERROR 3D000: No database selectedcreate procedure p1(out param1 int)beginselect count(*) into param1 from t3;end|ERROR 3D000: No database selecteduse test;DROP PROCEDURE IF EXISTS bug13037_p1;DROP PROCEDURE IF EXISTS bug13037_p2;DROP PROCEDURE IF EXISTS bug13037_p3;CREATE PROCEDURE bug13037_p1()BEGINIF bug13037_foo THENSELECT 1;END IF;END|CREATE PROCEDURE bug13037_p2()BEGINSET @bug13037_foo = bug13037_bar;END|CREATE PROCEDURE bug13037_p3()BEGINSELECT bug13037_foo;END|CALL bug13037_p1();ERROR 42S22: Unknown column 'bug13037_foo' in 'field list'CALL bug13037_p2();ERROR 42S22: Unknown column 'bug13037_bar' in 'field list'CALL bug13037_p3();ERROR 42S22: Unknown column 'bug13037_foo' in 'field list'CALL bug13037_p1();ERROR 42S22: Unknown column 'bug13037_foo' in 'field list'CALL bug13037_p2();ERROR 42S22: Unknown column 'bug13037_bar' in 'field list'CALL bug13037_p3();ERROR 42S22: Unknown column 'bug13037_foo' in 'field list'DROP PROCEDURE bug13037_p1;DROP PROCEDURE bug13037_p2;DROP PROCEDURE bug13037_p3;create database mysqltest1;create database mysqltest2;use mysqltest1;drop database mysqltest1;create procedure mysqltest2.p1() select version();create procedure p2() select version();ERROR 3D000: No database selecteduse mysqltest2;show procedure status;Db	Name	Type	Definer	Modified	Created	Security_type	Commentmysqltest2	p1	PROCEDURE	root@localhost	0000-00-00 00:00:00	0000-00-00 00:00:00	DEFINER	drop database mysqltest2;use test;DROP FUNCTION IF EXISTS bug13012|CREATE FUNCTION bug13012() RETURNS INTBEGINREPAIR TABLE t1;RETURN 1;END|ERROR 0A000: Not allowed to return a result set from a functionCREATE FUNCTION bug13012() RETURNS INTBEGINBACKUP TABLE t1 TO '/tmp';RETURN 1;END|ERROR 0A000: Not allowed to return a result set from a functionCREATE FUNCTION bug13012() RETURNS INTBEGINRESTORE TABLE t1 FROM '/tmp';RETURN 1;END|ERROR 0A000: Not allowed to return a result set from a functioncreate table t1 (a int)|CREATE PROCEDURE bug13012_1() REPAIR TABLE t1|CREATE FUNCTION bug13012_2() RETURNS INTBEGINCALL bug13012_1();RETURN 1;END|SELECT bug13012_2()|ERROR 0A000: Not allowed to return a result set from a functiondrop table t1|drop procedure bug13012_1|drop function bug13012_2|drop function if exists bug11555_1;drop function if exists bug11555_2;drop view if exists v1, v2, v3, v4;create function bug11555_1() returns int return (select max(i) from t1);create function bug11555_2() returns int return bug11555_1();create view v1 as select bug11555_1();ERROR 42S02: Table 'test.t1' doesn't existcreate view v2 as select bug11555_2();ERROR 42S02: Table 'test.t1' doesn't existcreate table t1 (i int);create view v1 as select bug11555_1();create view v2 as select bug11555_2();create view v3 as select * from v1;drop table t1;select * from v1;ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themselect * from v2;ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themselect * from v3;ERROR HY000: View 'test.v3' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themcreate view v4 as select * from v1;ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themdrop view v1, v2, v3;drop function bug11555_1;drop function bug11555_2;create table t1 (i int);create table t2 (i int);create trigger t1_ai after insert on t1 for each row insert into t2 values (new.i);create view v1 as select * from t1;drop table t2;insert into v1 values (1);ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themdrop trigger t1_ai;create function bug11555_1() returns int return (select max(i) from t2);create trigger t1_ai after insert on t1 for each row set @a:=bug11555_1();insert into v1 values (2);ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themdrop function bug11555_1;drop table t1;drop view v1;drop procedure if exists ` bug15658`;create procedure ``() select 1;ERROR 42000: Incorrect routine name ''create procedure ` `() select 1;ERROR 42000: Incorrect routine name ' 'create procedure `bug15658 `() select 1;ERROR 42000: Incorrect routine name 'bug15658 'create procedure ``.bug15658() select 1;ERROR 42000: Incorrect database name ''create procedure `x `.bug15658() select 1;ERROR 42000: Incorrect database name 'x 'create procedure ` bug15658`() select 1;call ` bug15658`();11show procedure status;Db	Name	Type	Definer	Modified	Created	Security_type	Commenttest	 bug15658	PROCEDURE	root@localhost	0000-00-00 00:00:00	0000-00-00 00:00:00	DEFINER	drop procedure ` bug15658`;drop function if exists bug14270;drop table if exists t1;create table t1 (s1 int primary key);create function bug14270() returns intbeginload index into cache t1;return 1;end|ERROR 0A000: Not allowed to return a result set from a functioncreate function bug14270() returns intbegincache index t1 key (`primary`) in keycache1;return 1;end|ERROR 0A000: Not allowed to return a result set from a functiondrop table t1;drop procedure if exists bug15091;create procedure bug15091()begindeclare selectstr varchar(6000) default ' ';declare conditionstr varchar(5000)  default '';set selectstr = concat(selectstr,' and ',c.operatorid,'in (',conditionstr, ')');end|call bug15091();ERROR 42S02: Unknown table 'c' in field listdrop procedure bug15091;drop function if exists bug16896;create aggregate function bug16896() returns int return 1;ERROR 42000: AGGREGATE is not supported for stored functions

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -