Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
95c4b297
Commit
95c4b297
authored
Mar 06, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not allow to cache queries with INTO clause
parent
8a86f316
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+12
-0
mysql-test/t/query_cache.test
mysql-test/t/query_cache.test
+13
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+6
-2
No files found.
mysql-test/r/query_cache.result
View file @
95c4b297
...
...
@@ -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;
mysql-test/t/query_cache.test
View file @
95c4b297
...
...
@@ -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
;
\ No newline at end of file
sql/sql_yacc.yy
View file @
95c4b297
...
...
@@ -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;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment