1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

fix (bug #10303: Misleading Last_query_cost value).

This commit is contained in:
ramil@mysql.com
2005-09-06 15:00:35 +05:00
parent c601bb87f8
commit 68acf8fdea
5 changed files with 43 additions and 0 deletions

View File

@@ -1127,3 +1127,19 @@ Qcache_hits 9
drop procedure f1;
drop table t1;
set GLOBAL query_cache_size=0;
SET GLOBAL query_cache_size=102400;
create table t1(a int);
insert into t1 values(0), (1), (4), (5);
select * from t1 where a > 3;
a
4
5
select * from t1 where a > 3;
a
4
5
show status like 'last_query_cost';
Variable_name Value
Last_query_cost 0.000000
drop table t1;
SET GLOBAL query_cache_size=0;