dbms: Set: fixed error with NOT IN (empty set) [#CONV-2944].

This commit is contained in:
Alexey Milovidov 2013-02-25 18:17:54 +00:00
parent 0ddaa9048e
commit aaffff4dd1

View File

@ -267,7 +267,11 @@ void Set::execute(Block & block, const ColumnNumbers & arguments, size_t result,
/// Если множество пусто /// Если множество пусто
if (data_types.empty()) if (data_types.empty())
{
if (negative)
memset(&vec_res[0], 1, vec_res.size());
return; return;
}
size_t keys_size = arguments.size(); size_t keys_size = arguments.size();
Row key(keys_size); Row key(keys_size);