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
6424fdf1
Commit
6424fdf1
authored
Jan 17, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/work-ctype-4.1
parents
f2a19352
1dde85db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
sql/sql_cache.cc
sql/sql_cache.cc
+12
-12
No files found.
sql/sql_cache.cc
View file @
6424fdf1
...
@@ -357,12 +357,6 @@ TODO list:
...
@@ -357,12 +357,6 @@ TODO list:
#define DUMP(C)
#define DUMP(C)
#endif
#endif
#ifdef FN_NO_CASE_SENCE
#define DB_NAME_PREPROCESS(C) tolower(C)
#else
#define DB_NAME_PREPROCESS(C) (C)
#endif
const
char
*
query_cache_type_names
[]
=
{
"OFF"
,
"ON"
,
"DEMAND"
,
NullS
};
const
char
*
query_cache_type_names
[]
=
{
"OFF"
,
"ON"
,
"DEMAND"
,
NullS
};
TYPELIB
query_cache_type_typelib
=
TYPELIB
query_cache_type_typelib
=
{
{
...
@@ -2478,12 +2472,18 @@ TABLE_COUNTER_TYPE Query_cache::is_cacheable(THD *thd, uint32 query_len,
...
@@ -2478,12 +2472,18 @@ TABLE_COUNTER_TYPE Query_cache::is_cacheable(THD *thd, uint32 query_len,
if
(
tables_used
->
table
->
db_type
==
DB_TYPE_MRG_ISAM
||
if
(
tables_used
->
table
->
db_type
==
DB_TYPE_MRG_ISAM
||
tables_used
->
table
->
tmp_table
!=
NO_TMP_TABLE
||
tables_used
->
table
->
tmp_table
!=
NO_TMP_TABLE
||
(
tables_used
->
db_length
==
5
&&
(
tables_used
->
db_length
==
5
&&
DB_NAME_PREPROCESS
(
tables_used
->
db
[
0
])
==
'm'
&&
#ifdef FN_NO_CASE_SENCE
DB_NAME_PREPROCESS
(
tables_used
->
db
[
1
])
==
'y'
&&
// TODO: latin1 charset should be replaced with system charset
DB_NAME_PREPROCESS
(
tables_used
->
db
[
2
])
==
's'
&&
my_strncasecmp
(
my_charset_latin1
,
tables_used
->
db
,
"mysql"
,
5
)
==
0
DB_NAME_PREPROCESS
(
tables_used
->
db
[
3
])
==
'q'
&&
#else
DB_NAME_PREPROCESS
(
tables_used
->
db
[
4
])
==
'l'
))
tables_used
->
db
[
0
]
==
'm'
&&
tables_used
->
db
[
1
]
==
'y'
&&
tables_used
->
db
[
2
]
==
's'
&&
tables_used
->
db
[
3
]
==
'q'
&&
tables_used
->
db
[
4
]
==
'l'
#endif
))
{
{
DBUG_PRINT
(
"qcache"
,
DBUG_PRINT
(
"qcache"
,
(
"select not cacheable: used MRG_ISAM, temporary or system table(s)"
));
(
"select not cacheable: used MRG_ISAM, temporary or system table(s)"
));
...
...
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