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
c44af18b
Commit
c44af18b
authored
Aug 01, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-qc_ci-4.1
parents
a3e26143
37ddceba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
16 deletions
+36
-16
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+22
-12
mysql-test/t/query_cache.test
mysql-test/t/query_cache.test
+12
-2
sql/sql_cache.cc
sql/sql_cache.cc
+2
-2
No files found.
mysql-test/r/query_cache.result
View file @
c44af18b
...
...
@@ -374,22 +374,23 @@ drop database mysqltest;
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 0
create table t1 (a char(1) not null);
insert into t1 values("");
create table t1 (a char(1) not null collate koi8r_general_ci);
insert into t1 values(_koi8r"");
set CHARACTER SET koi8r;
select * from t1;
a
set CHARACTER SET cp1251_koi8;
select * from t1;
a
set CHARACTER SET DEFAULT;
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache
1
Qcache_queries_in_cache
2
show status like "Qcache_hits";
Variable_name Value
Qcache_hits
5
Qcache_hits
4
drop table t1;
create database if not exists mysqltest;
create table mysqltest.t1 (i int not null);
...
...
@@ -415,7 +416,7 @@ Variable_name Value
Qcache_queries_in_cache 2
show status like "Qcache_hits";
Variable_name Value
Qcache_hits
7
Qcache_hits
6
drop database mysqltest;
drop table t1;
create table t1 (i int not null);
...
...
@@ -429,7 +430,7 @@ FOUND_ROWS()
4
show status like "Qcache_hits";
Variable_name Value
Qcache_hits
7
Qcache_hits
6
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 1
...
...
@@ -441,7 +442,7 @@ FOUND_ROWS()
1
show status like "Qcache_hits";
Variable_name Value
Qcache_hits
7
Qcache_hits
6
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 2
...
...
@@ -454,7 +455,7 @@ FOUND_ROWS()
4
show status like "Qcache_hits";
Variable_name Value
Qcache_hits
8
Qcache_hits
7
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 2
...
...
@@ -466,7 +467,7 @@ FOUND_ROWS()
1
show status like "Qcache_hits";
Variable_name Value
Qcache_hits
9
Qcache_hits
8
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 2
...
...
@@ -535,7 +536,7 @@ a
3
show status like "Qcache_hits";
Variable_name Value
Qcache_hits 1
2
Qcache_hits 1
1
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 2
...
...
@@ -552,7 +553,7 @@ a
3
show status like "Qcache_hits";
Variable_name Value
Qcache_hits 1
3
Qcache_hits 1
2
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 2
...
...
@@ -561,6 +562,15 @@ set GLOBAL query_cache_min_res_unit=default;
show global variables like "query_cache_min_res_unit";
Variable_name Value
query_cache_min_res_unit 4096
create table t1 (a int not null);
insert into t1 values (1);
select "aaa" from t1;
aaa
aaa
select "AAA" from t1;
AAA
AAA
drop table t1;
create table t1 (a int);
set GLOBAL query_cache_size=1000;
show global variables like "query_cache_size";
...
...
mysql-test/t/query_cache.test
View file @
c44af18b
...
...
@@ -260,8 +260,9 @@ show status like "Qcache_queries_in_cache";
#
# Charset convertion (cp1251_koi8 always present)
#
create
table
t1
(
a
char
(
1
)
not
null
);
insert
into
t1
values
(
""
);
create
table
t1
(
a
char
(
1
)
not
null
collate
koi8r_general_ci
);
insert
into
t1
values
(
_koi8r
""
);
set
CHARACTER
SET
koi8r
;
select
*
from
t1
;
set
CHARACTER
SET
cp1251_koi8
;
select
*
from
t1
;
...
...
@@ -368,6 +369,15 @@ drop table t2;
set
GLOBAL
query_cache_min_res_unit
=
default
;
show
global
variables
like
"query_cache_min_res_unit"
;
#
# Case sensitive test
#
create
table
t1
(
a
int
not
null
);
insert
into
t1
values
(
1
);
select
"aaa"
from
t1
;
select
"AAA"
from
t1
;
drop
table
t1
;
#
# Test of query cache resizing
#
...
...
sql/sql_cache.cc
View file @
c44af18b
...
...
@@ -1422,10 +1422,10 @@ ulong Query_cache::init_cache()
DUMP
(
this
);
VOID
(
hash_init
(
&
queries
,
system_charset_info
,
def_query_hash_size
,
0
,
0
,
VOID
(
hash_init
(
&
queries
,
&
my_charset_bin
,
def_query_hash_size
,
0
,
0
,
query_cache_query_get_key
,
0
,
0
));
#ifndef FN_NO_CASE_SENCE
VOID
(
hash_init
(
&
tables
,
system_charset_info
,
def_table_hash_size
,
0
,
0
,
VOID
(
hash_init
(
&
tables
,
&
my_charset_bin
,
def_table_hash_size
,
0
,
0
,
query_cache_table_get_key
,
0
,
0
));
#else
// windows, OS/2 or other case insensitive file names work around
...
...
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