dbms: development [#CONV-2944].

This commit is contained in:
Alexey Milovidov 2011-09-26 13:16:11 +00:00
parent 191c78ede0
commit cd94f5cccb
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ struct UInt128
struct UInt128Hash
{
size_t operator()(UInt128 x) const { return x.first; }
size_t operator()(UInt128 x) const { return x.first ^ x.second; }
};

View File

@ -275,7 +275,7 @@ void Aggregator::execute(BlockInputStreamPtr stream, AggregatedDataVariants & re
key[j] = (*key_columns[j])[i];
UInt64 tmp = boost::apply_visitor(to_uint64_visitor, key[j]);
/// Работает только на little endian
memcpy(key_hash_union.bytes, reinterpret_cast<const char *>(&tmp), key_sizes[j]);
memcpy(key_hash_union.bytes + offset, reinterpret_cast<const char *>(&tmp), key_sizes[j]);
offset += key_sizes[j];
}
}