diff options
author | dkatz@damien-katzs-computer.local <> | 2007-08-03 14:14:15 -0400 |
---|---|---|
committer | dkatz@damien-katzs-computer.local <> | 2007-08-03 14:14:15 -0400 |
commit | f64ef11906a13814cc15effc8ba1da0c05519f9b (patch) | |
tree | 4338374bf1ac16a04a1a788881c89f2208cb9414 /sql | |
parent | 0d9301585bb076ef85c0cb91c7999148a41d0804 (diff) | |
parent | 7c2c8f07e43a5ce3998473bef6565e9e60ac533f (diff) | |
download | mariadb-git-f64ef11906a13814cc15effc8ba1da0c05519f9b.tar.gz |
Merge dkatz@bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into damien-katzs-computer.local:/Users/dkatz/mysql50
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_select.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index ac8dc84f118..b852039b93f 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -13041,7 +13041,8 @@ static int join_init_cache(THD *thd,JOIN_TAB *tables,uint table_count) { reg1 uint i; - uint length,blobs,size; + uint length, blobs; + size_t size; CACHE_FIELD *copy,**blob_ptr; JOIN_CACHE *cache; JOIN_TAB *join_tab; @@ -13157,7 +13158,7 @@ store_record_in_cache(JOIN_CACHE *cache) length=cache->length; if (cache->blobs) length+=used_blob_length(cache->blob_ptr); - if ((last_record=(length+cache->length > (uint) (cache->end - pos)))) + if ((last_record= (length + cache->length > (size_t) (cache->end - pos)))) cache->ptr_record=cache->records; /* @@ -13203,7 +13204,7 @@ store_record_in_cache(JOIN_CACHE *cache) } } cache->pos=pos; - return last_record || (uint) (cache->end -pos) < cache->length; + return last_record || (size_t) (cache->end - pos) < cache->length; } |