summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com/narttu.mysql.fi>2006-11-30 22:00:05 +0200
committerunknown <monty@mysql.com/narttu.mysql.fi>2006-11-30 22:00:05 +0200
commit346557a957576006bd1745ece1cd3c1b801f0058 (patch)
tree731e64ce46a0d46ff8ee40e79504c9a5f12cc25d /sql/sql_cache.cc
parentd2e04479b9550de85cdea58d577ecef51786fbca (diff)
downloadmariadb-git-346557a957576006bd1745ece1cd3c1b801f0058.tar.gz
Don't abort if we call my_thread_end() multiple times
Fixed new introduced bug in my_time.c BitKeeper/deleted/.del-valgrind.supp.orig: Delete: mysql-test/valgrind.supp.orig mysys/my_thr_init.c: More comments Don't abort if we call my_thread_end() multiple times sql-common/my_time.c: Fixed wrong patch in last commit sql/sql_cache.cc: Fixed old bad merge (not critical) sql/tztime.cc: Portability fix
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 3362ec76fc2..01f8184341d 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -1039,7 +1039,6 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
while (sql[i]=='(')
i++;
-
/*
Test if the query is a SELECT
(pre-space is removed in dispatch_command).
@@ -1051,7 +1050,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
if ((my_toupper(system_charset_info, sql[i]) != 'S' ||
my_toupper(system_charset_info, sql[i + 1]) != 'E' ||
my_toupper(system_charset_info, sql[i + 2]) != 'L') &&
- sql[0] != '/')
+ sql[i] != '/')
{
DBUG_PRINT("qcache", ("The statement is not a SELECT; Not cached"));
goto err;