summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy9
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 386b722a0a7..28c99abeb22 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -12502,13 +12502,8 @@ opt_procedure_or_into:
}
| into opt_select_lock_type
{
- push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
- ER_WARN_DEPRECATED_SYNTAX,
- ER_THD(thd, ER_WARN_DEPRECATED_SYNTAX),
- "<select expression> INTO <destination>;",
- "'SELECT <select list> INTO <destination>"
- " FROM...'");
$$= $2;
+ status_var_increment(thd->status_var.feature_into_old_syntax);
}
;
@@ -12731,6 +12726,7 @@ into_destination:
new (thd->mem_root)
select_export(thd, lex->exchange))))
MYSQL_YYABORT;
+ status_var_increment(thd->status_var.feature_into_outfile);
}
opt_load_data_charset
{ Lex->exchange->cs= $4; }
@@ -12753,6 +12749,7 @@ into_destination:
| select_var_list_init
{
Lex->uncacheable(UNCACHEABLE_SIDEEFFECT);
+ status_var_increment(thd->status_var.feature_into_variable);
}
;