summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-11-07 13:02:52 +0200
committerunknown <bell@sanja.is.com.ua>2003-11-07 13:02:52 +0200
commitb036800ee04fb4c15f47305ba83a55d0246921f6 (patch)
tree5a8f4676f0133838ed818c86d0d1a3e95102e7d8 /sql/sql_cache.cc
parent986493e21bf26e1f25f2517057ee55c63ac625d7 (diff)
downloadmariadb-git-b036800ee04fb4c15f47305ba83a55d0246921f6.tar.gz
fixed layout
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index a4ae8fd5946..396764cd532 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -770,9 +770,12 @@ void Query_cache::store_query(THD *thd, TABLE_LIST *tables_used)
bzero(&flags, QUERY_CACHE_FLAGS_SIZE);
flags.client_long_flag= (thd->client_capabilities & CLIENT_LONG_FLAG ?
1 : 0);
- flags.character_set_client_num= thd->variables.character_set_client->number;
- flags.character_set_results_num= thd->variables.character_set_results->number;
- flags.collation_connection_num= thd->variables.collation_connection->number;
+ flags.character_set_client_num=
+ thd->variables.character_set_client->number;
+ flags.character_set_results_num=
+ thd->variables.character_set_results->number;
+ flags.collation_connection_num=
+ thd->variables.collation_connection->number;
flags.limit= thd->variables.select_limit;
STRUCT_LOCK(&structure_guard_mutex);
@@ -953,7 +956,8 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
flags.client_long_flag= (thd->client_capabilities & CLIENT_LONG_FLAG ?
1 : 0);
flags.character_set_client_num= thd->variables.character_set_client->number;
- flags.character_set_results_num= thd->variables.character_set_results->number;
+ flags.character_set_results_num=
+ thd->variables.character_set_results->number;
flags.collation_connection_num= thd->variables.collation_connection->number;
flags.limit= thd->variables.select_limit;
memcpy((void *)(sql + (tot_length - QUERY_CACHE_FLAGS_SIZE)),