Commit 17fac64c authored by unknown's avatar unknown

Changed "query" into "statement", and corrected SQL state code (04000->0A000).


include/mysqld_error.h:
  Changed "query" into "statement".
include/sql_state.h:
  Changed "query" into "statement", and corrected SQL state code.
mysql-test/r/sp-error.result:
  Changed "query" into "statement", and corrected SQL state code.
sql/share/czech/errmsg.txt:
  Changed "query" into "statement".
sql/share/danish/errmsg.txt:
  Changed "query" into "statement".
sql/share/dutch/errmsg.txt:
  Changed "query" into "statement".
sql/share/english/errmsg.txt:
  Changed "query" into "statement".
sql/share/estonian/errmsg.txt:
  Changed "query" into "statement".
sql/share/french/errmsg.txt:
  Changed "query" into "statement".
sql/share/german/errmsg.txt:
  Changed "query" into "statement".
sql/share/greek/errmsg.txt:
  Changed "query" into "statement".
sql/share/hungarian/errmsg.txt:
  Changed "query" into "statement".
sql/share/italian/errmsg.txt:
  Changed "query" into "statement".
sql/share/japanese/errmsg.txt:
  Changed "query" into "statement".
sql/share/korean/errmsg.txt:
  Changed "query" into "statement".
sql/share/norwegian-ny/errmsg.txt:
  Changed "query" into "statement".
sql/share/norwegian/errmsg.txt:
  Changed "query" into "statement".
sql/share/polish/errmsg.txt:
  Changed "query" into "statement".
sql/share/portuguese/errmsg.txt:
  Changed "query" into "statement".
sql/share/romanian/errmsg.txt:
  Changed "query" into "statement".
sql/share/russian/errmsg.txt:
  Changed "query" into "statement".
sql/share/serbian/errmsg.txt:
  Changed "query" into "statement".
sql/share/slovak/errmsg.txt:
  Changed "query" into "statement".
sql/share/spanish/errmsg.txt:
  Changed "query" into "statement".
sql/share/swedish/errmsg.txt:
  Changed "query" into "statement".
sql/share/ukrainian/errmsg.txt:
  Changed "query" into "statement".
sql/sql_yacc.yy:
  Changed "query" into "statement".
parent 2e81cc8b
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
#define ER_SP_UNINIT_VAR 1292 #define ER_SP_UNINIT_VAR 1292
#define ER_SP_BADSELECT 1293 #define ER_SP_BADSELECT 1293
#define ER_SP_BADRETURN 1294 #define ER_SP_BADRETURN 1294
#define ER_SP_BADQUERY 1295 #define ER_SP_BADSTATEMENT 1295
#define ER_UPDATE_LOG_DEPRECATED_IGNORED 1296 #define ER_UPDATE_LOG_DEPRECATED_IGNORED 1296
#define ER_UPDATE_LOG_DEPRECATED_TRANSLATED 1297 #define ER_UPDATE_LOG_DEPRECATED_TRANSLATED 1297
#define ER_QUERY_INTERRUPTED 1298 #define ER_QUERY_INTERRUPTED 1298
......
...@@ -171,9 +171,9 @@ ER_SP_LILABEL_MISMATCH, "42000", "", ...@@ -171,9 +171,9 @@ ER_SP_LILABEL_MISMATCH, "42000", "",
ER_SP_LABEL_REDEFINE, "42000", "", ER_SP_LABEL_REDEFINE, "42000", "",
ER_SP_LABEL_MISMATCH, "42000", "", ER_SP_LABEL_MISMATCH, "42000", "",
ER_SP_UNINIT_VAR, "01000", "", ER_SP_UNINIT_VAR, "01000", "",
ER_SP_BADSELECT, "04000", "", ER_SP_BADSELECT, "0A000", "",
ER_SP_BADRETURN, "42000", "", ER_SP_BADRETURN, "42000", "",
ER_SP_BADQUERY, "04000", "", ER_SP_BADSTATEMENT, "0A000", "",
ER_UPDATE_LOG_DEPRECATED_IGNORED, "42000", "", ER_UPDATE_LOG_DEPRECATED_IGNORED, "42000", "",
ER_UPDATE_LOG_DEPRECATED_TRANSLATED, "42000", "", ER_UPDATE_LOG_DEPRECATED_TRANSLATED, "42000", "",
ER_QUERY_INTERRUPTED, "70100", "", ER_QUERY_INTERRUPTED, "70100", "",
......
...@@ -79,7 +79,7 @@ select name from mysql.proc; ...@@ -79,7 +79,7 @@ select name from mysql.proc;
select type from mysql.proc; select type from mysql.proc;
end; end;
call foo(); call foo();
ERROR 04000: SELECT in a stored procedure must have INTO ERROR 0A000: SELECT in a stored procedure must have INTO
drop procedure foo; drop procedure foo;
create procedure foo() create procedure foo()
return 42; return 42;
...@@ -90,7 +90,7 @@ declare x int; ...@@ -90,7 +90,7 @@ declare x int;
select max(c) into x from test.t; select max(c) into x from test.t;
return x; return x;
end; end;
ERROR 04000: Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION ERROR 0A000: Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION
create procedure p(x int) create procedure p(x int)
insert into test.t1 values (x); insert into test.t1 values (x);
create function f(x int) returns int create function f(x int) returns int
......
...@@ -307,7 +307,7 @@ character-set=latin2 ...@@ -307,7 +307,7 @@ character-set=latin2
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -301,7 +301,7 @@ character-set=latin1 ...@@ -301,7 +301,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -309,7 +309,7 @@ character-set=latin1 ...@@ -309,7 +309,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -298,7 +298,7 @@ character-set=latin1 ...@@ -298,7 +298,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -303,7 +303,7 @@ character-set=latin7 ...@@ -303,7 +303,7 @@ character-set=latin7
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -298,7 +298,7 @@ character-set=latin1 ...@@ -298,7 +298,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -310,7 +310,7 @@ character-set=latin1 ...@@ -310,7 +310,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -298,7 +298,7 @@ character-set=greek ...@@ -298,7 +298,7 @@ character-set=greek
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -300,7 +300,7 @@ character-set=latin2 ...@@ -300,7 +300,7 @@ character-set=latin2
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -298,7 +298,7 @@ character-set=latin1 ...@@ -298,7 +298,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -300,7 +300,7 @@ character-set=ujis ...@@ -300,7 +300,7 @@ character-set=ujis
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -298,7 +298,7 @@ character-set=euckr ...@@ -298,7 +298,7 @@ character-set=euckr
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -300,7 +300,7 @@ character-set=latin1 ...@@ -300,7 +300,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -300,7 +300,7 @@ character-set=latin1 ...@@ -300,7 +300,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -302,7 +302,7 @@ character-set=latin2 ...@@ -302,7 +302,7 @@ character-set=latin2
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -299,7 +299,7 @@ character-set=latin1 ...@@ -299,7 +299,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -302,7 +302,7 @@ character-set=latin2 ...@@ -302,7 +302,7 @@ character-set=latin2
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -300,7 +300,7 @@ character-set=koi8r ...@@ -300,7 +300,7 @@ character-set=koi8r
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -293,7 +293,7 @@ character-set=cp1250 ...@@ -293,7 +293,7 @@ character-set=cp1250
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -306,7 +306,7 @@ character-set=latin2 ...@@ -306,7 +306,7 @@ character-set=latin2
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -300,7 +300,7 @@ character-set=latin1 ...@@ -300,7 +300,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -298,7 +298,7 @@ character-set=latin1 ...@@ -298,7 +298,7 @@ character-set=latin1
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -303,7 +303,7 @@ character-set=koi8u ...@@ -303,7 +303,7 @@ character-set=koi8u
"Referring to uninitialized variable %s" "Referring to uninitialized variable %s"
"SELECT in a stored procedure must have INTO" "SELECT in a stored procedure must have INTO"
"RETURN is only allowed in a FUNCTION" "RETURN is only allowed in a FUNCTION"
"Queries, like SELECT, INSERT, UPDATE (and others), are not allowed in a FUNCTION" "Statements like SELECT, INSERT, UPDATE (and others) are not allowed in a FUNCTION"
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored."
"The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN." "The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN."
"Query execution was interrupted" "Query execution was interrupted"
......
...@@ -1523,7 +1523,7 @@ sp_proc_stmt: ...@@ -1523,7 +1523,7 @@ sp_proc_stmt:
if (lex->sphead->m_type == TYPE_ENUM_FUNCTION && if (lex->sphead->m_type == TYPE_ENUM_FUNCTION &&
lex->sql_command != SQLCOM_SET_OPTION) lex->sql_command != SQLCOM_SET_OPTION)
{ {
send_error(YYTHD, ER_SP_BADQUERY); send_error(YYTHD, ER_SP_BADSTATEMENT);
YYABORT; YYABORT;
} }
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment