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
d352328a
Commit
d352328a
authored
Apr 03, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_cache.cc:
Windows compilation fix sql/sql_cache.cc: Windows compilation fix
parent
1e8cc909
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
sql/sql_cache.cc
sql/sql_cache.cc
+5
-7
No files found.
sql/sql_cache.cc
View file @
d352328a
...
@@ -1404,9 +1404,9 @@ ulong Query_cache::init_cache()
...
@@ -1404,9 +1404,9 @@ ulong Query_cache::init_cache()
query_cache_table_get_key
,
0
,
0
));
query_cache_table_get_key
,
0
,
0
));
#else
#else
// windows, OS/2 or other case insensitive file names work around
// windows, OS/2 or other case insensitive file names work around
VOID
(
hash_init
(
&
tables
,
system_charset_info
,
def_table_hash_size
,
0
,
0
,
VOID
(
hash_init
(
&
tables
,
query_cache_table_get_key
,
0
,
lower_case_table_names
?
&
my_charset_bin
:
system_charset_info
,
(
lower_case_table_names
?
0
:
HASH_CASE_INSENSITIVE
)
));
def_table_hash_size
,
0
,
0
,
query_cache_table_get_key
,
0
,
0
));
#endif
#endif
queries_in_cache
=
0
;
queries_in_cache
=
0
;
...
@@ -2476,10 +2476,8 @@ TABLE_COUNTER_TYPE Query_cache::is_cacheable(THD *thd, uint32 query_len,
...
@@ -2476,10 +2476,8 @@ TABLE_COUNTER_TYPE Query_cache::is_cacheable(THD *thd, uint32 query_len,
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
&&
#ifdef FN_NO_CASE_SENCE
#ifdef FN_NO_CASE_SENCE
// TODO: latin1 charset should be replaced with system charset
my_strnncoll
(
system_charset_info
,
tables_used
->
db
,
6
,
my_strncasecmp
(
&
my_charset_latin1
,
"mysql"
,
6
)
==
0
tables_used
->
db
,
"mysql"
,
5
)
==
0
#else
#else
tables_used
->
db
[
0
]
==
'm'
&&
tables_used
->
db
[
0
]
==
'm'
&&
tables_used
->
db
[
1
]
==
'y'
&&
tables_used
->
db
[
1
]
==
'y'
&&
...
...
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