diff options
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r-- | sql/sql_yacc.yy | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 5caa3401fba..d792d144545 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -6495,12 +6495,6 @@ simple_ident: if (spc && (spv = spc->find_pvar(&$1))) { /* We're compiling a stored procedure and found a variable */ - if (lex->sql_command != SQLCOM_CALL && ! spv->isset) - { - push_warning_printf(YYTHD, MYSQL_ERROR::WARN_LEVEL_WARN, - ER_SP_UNINIT_VAR, ER(ER_SP_UNINIT_VAR), - $1.str); - } $$ = (Item*) new Item_splocal($1, spv->offset); lex->variables_used= 1; lex->safe_to_cache_query=0; |