diff options
author | bell@sanja.is.com.ua <> | 2003-03-06 17:37:12 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2003-03-06 17:37:12 +0200 |
commit | 95c4b297b61fdaa69f9134aae5f933dbbc227946 (patch) | |
tree | 820962144380ec93e63bdfa87edb87c6e2cc3bf9 /sql/sql_yacc.yy | |
parent | 8a86f316352bd2b7e390254e132680728f4c6471 (diff) | |
download | mariadb-git-95c4b297b61fdaa69f9134aae5f933dbbc227946.tar.gz |
do not allow to cache queries with INTO clause
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r-- | sql/sql_yacc.yy | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 2f339f30eb4..7484eeb5114 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -2448,13 +2448,17 @@ procedure_item: opt_into: INTO OUTFILE TEXT_STRING { - if (!(Lex->exchange= new sql_exchange($3.str,0))) + THD *thd= current_thd; + thd->safe_to_cache_query= 0; + if (!(thd->lex.exchange= new sql_exchange($3.str,0))) YYABORT; } opt_field_term opt_line_term | INTO DUMPFILE TEXT_STRING { - if (!(Lex->exchange= new sql_exchange($3.str,1))) + THD *thd= current_thd; + thd->safe_to_cache_query= 0; + if (!(thd->lex.exchange= new sql_exchange($3.str,1))) YYABORT; }; |