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
4f26fa51
Commit
4f26fa51
authored
Aug 11, 2005
by
bell@51.0.168.192.in-addr.arpa
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
978d67a9
66a055b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-1
sql/sql_cache.cc
sql/sql_cache.cc
+3
-3
No files found.
sql/item_strfunc.cc
View file @
4f26fa51
...
...
@@ -1187,7 +1187,7 @@ String *Item_func_substr_index::val_str(String *str)
}
}
else
{
// Start counting at end
{
/*
Negative index, start counting at the end
*/
...
...
sql/sql_cache.cc
View file @
4f26fa51
...
...
@@ -762,7 +762,7 @@ void Query_cache::store_query(THD *thd, TABLE_LIST *tables_used)
TABLE_COUNTER_TYPE
local_tables
;
ulong
tot_length
;
DBUG_ENTER
(
"Query_cache::store_query"
);
if
(
query_cache_size
==
0
)
if
(
query_cache_size
==
0
||
thd
->
locked_tables
)
DBUG_VOID_RETURN
;
uint8
tables_type
=
0
;
...
...
@@ -921,8 +921,8 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
bool
check_tables
;
DBUG_ENTER
(
"Query_cache::send_result_to_client"
);
if
(
query_cache_size
==
0
||
thd
->
variables
.
query_cache_type
==
0
)
if
(
query_cache_size
==
0
||
thd
->
locked_tables
||
thd
->
variables
.
query_cache_type
==
0
)
goto
err
;
/* Check that we haven't forgot to reset the query cache variables */
...
...
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