diff options
author | bar@bar.mysql.r18.ru <> | 2003-03-18 17:01:32 +0400 |
---|---|---|
committer | bar@bar.mysql.r18.ru <> | 2003-03-18 17:01:32 +0400 |
commit | 8103c4c537fd2a9ecb1d783fe91a43e644a76fdc (patch) | |
tree | 149b353fe4d384e40808e89307bd44a69179d92c /sql/sql_cache.cc | |
parent | 031ac2a7b2ba8eb881fc24d0429922cd8c42e9b9 (diff) | |
download | mariadb-git-8103c4c537fd2a9ecb1d783fe91a43e644a76fdc.tar.gz |
CONVERT class was removed
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r-- | sql/sql_cache.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 90fd61ebeb7..bd6d7f83c95 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -778,11 +778,8 @@ void Query_cache::store_query(THD *thd, TABLE_LIST *tables_used) most significant bit - CLIENT_LONG_FLAG, other - charset number (0 no charset convertion) */ - if (thd->variables.convert_set != 0) - { - flags|= (byte) thd->variables.convert_set->number(); - DBUG_ASSERT(thd->variables.convert_set->number() < 128); - } + flags|= (byte) thd->charset()->number; + DBUG_ASSERT(thd->charset()->number < 128); tot_length=thd->query_length+thd->db_length+2; thd->query[tot_length-1] = (char) flags; @@ -935,11 +932,8 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length) Other - charset number (0 no charset convertion) */ flags = (thd->client_capabilities & CLIENT_LONG_FLAG ? 0x80 : 0); - if (thd->variables.convert_set != 0) - { - flags |= (byte) thd->variables.convert_set->number(); - DBUG_ASSERT(thd->variables.convert_set->number() < 128); - } + flags |= (byte) thd->charset()->number; + DBUG_ASSERT(thd->charset()->number < 128); sql[tot_length-1] = (char) flags; query_block = (Query_cache_block *) hash_search(&queries, (byte*) sql, tot_length); |