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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
05bbea4b
Commit
05bbea4b
authored
Feb 14, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed invalidation of query cache on LOAD DATA
parent
62eda324
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+11
-0
mysql-test/t/query_cache.test
mysql-test/t/query_cache.test
+11
-1
sql/sql_load.cc
sql/sql_load.cc
+1
-0
No files found.
mysql-test/r/query_cache.result
View file @
05bbea4b
...
...
@@ -553,3 +553,14 @@ Table 'test.t1' doesn't exist
drop table t2;
select * from t1 where id=2;
Table 'test.t1' doesn't exist
create table t1 (word char(20) not null);
select * from t1;
word
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 1
load data infile '../../std_data/words.dat' into table t1;
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 @
05bbea4b
...
...
@@ -384,7 +384,6 @@ select * from mysql.db;
enable_result_log
;
show
status
like
"Qcache_queries_in_cache"
;
#
# simple rename test
#
...
...
@@ -397,3 +396,14 @@ select * from t1 where id=2;
drop
table
t2
;
--
error
1146
select
*
from
t1
where
id
=
2
;
#
# Load data invalidation test
#
create
table
t1
(
word
char
(
20
)
not
null
);
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
;
\ No newline at end of file
sql/sql_load.cc
View file @
05bbea4b
...
...
@@ -336,6 +336,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
}
if
(
transactional_table
)
error
=
ha_autocommit_or_rollback
(
thd
,
error
);
query_cache_invalidate3
(
thd
,
table_list
,
0
);
err:
if
(
thd
->
lock
)
...
...
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