diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 307999c1ada..2d315e91f52 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -7054,6 +7054,8 @@ load_data_lock: Ignore this option in SP to avoid problem with query cache */ if (Lex->sphead != 0) + $$= YYTHD->update_lock_default; + else #endif $$= TL_WRITE_CONCURRENT_INSERT; }