mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.0
into sanja.is.com.ua:/home/bell/mysql/work-qcfile-4.0
This commit is contained in:
@ -564,3 +564,15 @@ show status like "Qcache_queries_in_cache";
|
|||||||
Variable_name Value
|
Variable_name Value
|
||||||
Qcache_queries_in_cache 0
|
Qcache_queries_in_cache 0
|
||||||
drop table t1;
|
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";
|
show status like "Qcache_queries_in_cache";
|
||||||
load data infile '../../std_data/words.dat' into table t1;
|
load data infile '../../std_data/words.dat' into table t1;
|
||||||
show status like "Qcache_queries_in_cache";
|
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;
|
drop table t1;
|
@ -2450,13 +2450,17 @@ procedure_item:
|
|||||||
opt_into:
|
opt_into:
|
||||||
INTO OUTFILE TEXT_STRING
|
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;
|
YYABORT;
|
||||||
}
|
}
|
||||||
opt_field_term opt_line_term
|
opt_field_term opt_line_term
|
||||||
| INTO DUMPFILE TEXT_STRING
|
| 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;
|
YYABORT;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user