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
9ec97f2c
Commit
9ec97f2c
authored
Jan 24, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed table invalidation in simple renaming
parent
caaff55c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
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
+14
-0
sql/sql_table.cc
sql/sql_table.cc
+2
-0
No files found.
mysql-test/r/query_cache.result
View file @
9ec97f2c
...
...
@@ -542,3 +542,14 @@ select * from mysql.db;
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 0
create table t1(id int auto_increment primary key);
insert into t1 values (NULL), (NULL), (NULL);
select * from t1 where id=2;
id
2
alter table t1 rename to t2;
select * from t1 where id=2;
Table 'test.t1' doesn't exist
drop table t2;
select * from t1 where id=2;
Table 'test.t1' doesn't exist
mysql-test/t/query_cache.test
View file @
9ec97f2c
...
...
@@ -383,3 +383,17 @@ disable_result_log;
select
*
from
mysql
.
db
;
enable_result_log
;
show
status
like
"Qcache_queries_in_cache"
;
#
# simple rename test
#
create
table
t1
(
id
int
auto_increment
primary
key
);
insert
into
t1
values
(
NULL
),
(
NULL
),
(
NULL
);
select
*
from
t1
where
id
=
2
;
alter
table
t1
rename
to
t2
;
--
error
1146
select
*
from
t1
where
id
=
2
;
drop
table
t2
;
--
error
1146
select
*
from
t1
where
id
=
2
;
sql/sql_table.cc
View file @
9ec97f2c
...
...
@@ -1432,6 +1432,8 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
}
send_ok
(
&
thd
->
net
);
}
table_list
->
table
=
0
;
// For query cache
query_cache_invalidate3
(
thd
,
table_list
,
0
);
DBUG_RETURN
(
error
);
}
...
...
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