diff options
author | unknown <bell@sanja.is.com.ua> | 2004-10-22 22:51:04 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-10-22 22:51:04 +0300 |
commit | 5ab6c5e532f682631761f02bec6f894df3930002 (patch) | |
tree | 27ec96cbef4d5b34e9103f7cafd330eda5119b2d /sql/sql_cache.cc | |
parent | a6efe82feeb9d5d6805be2ae5b67899a6f9cf500 (diff) | |
download | mariadb-git-5ab6c5e532f682631761f02bec6f894df3930002.tar.gz |
postreview fixes
sql/mysql_priv.h:
constant definition
sql/sql_base.cc:
difine used instead of constant
sql/sql_cache.cc:
difine used instead of constant
typo fixed
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r-- | sql/sql_cache.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 8e953e223a9..f503a63e752 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -983,7 +983,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length) */ for (tmptable= thd->temporary_tables; tmptable ; tmptable= tmptable->next) { - if (tmptable->key_length - 8 == table->key_len() && + if (tmptable->key_length - TMP_TABLE_KEY_EXTRA == table->key_len() && !memcmp(tmptable->table_cache_key, table->data(), table->key_len())) { @@ -993,7 +993,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length) STRUCT_UNLOCK(&structure_guard_mutex); /* We should not store result of this query because it contain - temporary tables => assign following wariable to make check + temporary tables => assign following variable to make check faster. */ thd->safe_to_cache_query=0; |