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
9c2e4b03
Commit
9c2e4b03
authored
Mar 31, 2004
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-4.1
parents
4cd406a9
963debbe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+5
-0
mysql-test/t/query_cache.test
mysql-test/t/query_cache.test
+6
-0
sql/sql_cache.cc
sql/sql_cache.cc
+7
-2
No files found.
mysql-test/r/query_cache.result
View file @
9c2e4b03
...
@@ -846,4 +846,9 @@ SELECT * FROM test.t1;
...
@@ -846,4 +846,9 @@ SELECT * FROM test.t1;
a
a
USE test;
USE test;
DROP TABLE t1;
DROP TABLE t1;
set character_set_results=null;
select @@character_set_results;
@@character_set_results
NULL
set character_set_results=default;
SET GLOBAL query_cache_size=0;
SET GLOBAL query_cache_size=0;
mysql-test/t/query_cache.test
View file @
9c2e4b03
...
@@ -620,5 +620,11 @@ SELECT * FROM test.t1;
...
@@ -620,5 +620,11 @@ SELECT * FROM test.t1;
USE
test
;
USE
test
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# charset with NULL
#
set
character_set_results
=
null
;
select
@@
character_set_results
;
set
character_set_results
=
default
;
SET
GLOBAL
query_cache_size
=
0
;
SET
GLOBAL
query_cache_size
=
0
;
sql/sql_cache.cc
View file @
9c2e4b03
...
@@ -780,7 +780,9 @@ void Query_cache::store_query(THD *thd, TABLE_LIST *tables_used)
...
@@ -780,7 +780,9 @@ void Query_cache::store_query(THD *thd, TABLE_LIST *tables_used)
flags
.
character_set_client_num
=
flags
.
character_set_client_num
=
thd
->
variables
.
character_set_client
->
number
;
thd
->
variables
.
character_set_client
->
number
;
flags
.
character_set_results_num
=
flags
.
character_set_results_num
=
thd
->
variables
.
character_set_results
->
number
;
(
thd
->
variables
.
character_set_results
?
thd
->
variables
.
character_set_results
->
number
:
UINT_MAX
);
flags
.
collation_connection_num
=
flags
.
collation_connection_num
=
thd
->
variables
.
collation_connection
->
number
;
thd
->
variables
.
collation_connection
->
number
;
flags
.
limit
=
thd
->
variables
.
select_limit
;
flags
.
limit
=
thd
->
variables
.
select_limit
;
...
@@ -795,6 +797,7 @@ void Query_cache::store_query(THD *thd, TABLE_LIST *tables_used)
...
@@ -795,6 +797,7 @@ void Query_cache::store_query(THD *thd, TABLE_LIST *tables_used)
if
(
ask_handler_allowance
(
thd
,
tables_used
))
if
(
ask_handler_allowance
(
thd
,
tables_used
))
{
{
refused
++
;
STRUCT_UNLOCK
(
&
structure_guard_mutex
);
STRUCT_UNLOCK
(
&
structure_guard_mutex
);
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
...
@@ -964,7 +967,9 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
...
@@ -964,7 +967,9 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
1
:
0
);
1
:
0
);
flags
.
character_set_client_num
=
thd
->
variables
.
character_set_client
->
number
;
flags
.
character_set_client_num
=
thd
->
variables
.
character_set_client
->
number
;
flags
.
character_set_results_num
=
flags
.
character_set_results_num
=
thd
->
variables
.
character_set_results
->
number
;
(
thd
->
variables
.
character_set_results
?
thd
->
variables
.
character_set_results
->
number
:
UINT_MAX
);
flags
.
collation_connection_num
=
thd
->
variables
.
collation_connection
->
number
;
flags
.
collation_connection_num
=
thd
->
variables
.
collation_connection
->
number
;
flags
.
limit
=
thd
->
variables
.
select_limit
;
flags
.
limit
=
thd
->
variables
.
select_limit
;
memcpy
((
void
*
)(
sql
+
(
tot_length
-
QUERY_CACHE_FLAGS_SIZE
)),
memcpy
((
void
*
)(
sql
+
(
tot_length
-
QUERY_CACHE_FLAGS_SIZE
)),
...
...
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