From aaffff4dd11894d63b3e4793790466b8643321bb Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 25 Feb 2013 18:17:54 +0000 Subject: [PATCH] dbms: Set: fixed error with NOT IN (empty set) [#CONV-2944]. --- dbms/src/Interpreters/Set.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dbms/src/Interpreters/Set.cpp b/dbms/src/Interpreters/Set.cpp index 7a658a264ef..b67fe4bf512 100644 --- a/dbms/src/Interpreters/Set.cpp +++ b/dbms/src/Interpreters/Set.cpp @@ -267,7 +267,11 @@ void Set::execute(Block & block, const ColumnNumbers & arguments, size_t result, /// Если множество пусто if (data_types.empty()) + { + if (negative) + memset(&vec_res[0], 1, vec_res.size()); return; + } size_t keys_size = arguments.size(); Row key(keys_size);