mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.0
into sanja.is.com.ua:/home/bell/mysql/work-qcfile-4.0 sql/sql_yacc.yy: Auto merged
This commit is contained in:
commit
6665ead9ba
3 changed files with 31 additions and 2 deletions
|
@ -564,3 +564,15 @@ show status like "Qcache_queries_in_cache";
|
|||
Variable_name Value
|
||||
Qcache_queries_in_cache 0
|
||||
drop table t1;
|
||||
drop table if exists t1;
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1),(2),(3);
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 0
|
||||
select * from t1 into outfile "query_caceh.out.file";
|
||||
select * from t1 limit 1 into dumpfile "query_cache.dump.file";
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 0
|
||||
drop table t1;
|
||||
|
|
|
@ -406,4 +406,17 @@ select * from t1;
|
|||
show status like "Qcache_queries_in_cache";
|
||||
load data infile '../../std_data/words.dat' into table t1;
|
||||
show status like "Qcache_queries_in_cache";
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# INTO OUTFILE/DUMPFILE test
|
||||
#
|
||||
|
||||
drop table if exists t1;
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1),(2),(3);
|
||||
show status like "Qcache_queries_in_cache";
|
||||
select * from t1 into outfile "query_caceh.out.file";
|
||||
select * from t1 limit 1 into dumpfile "query_cache.dump.file";
|
||||
show status like "Qcache_queries_in_cache";
|
||||
drop table t1;
|
|
@ -2450,13 +2450,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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue