From 521577dced7b61dd4adc23ed0a415cb704aae4fb Mon Sep 17 00:00:00 2001 From: Pavel Kartavyy Date: Fri, 18 Apr 2014 18:24:06 +0400 Subject: [PATCH] dbms: fixed bug [#METR-10190] --- dbms/src/Interpreters/Set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Interpreters/Set.cpp b/dbms/src/Interpreters/Set.cpp index 9371a3c838c..da04b4bf71f 100644 --- a/dbms/src/Interpreters/Set.cpp +++ b/dbms/src/Interpreters/Set.cpp @@ -559,7 +559,7 @@ BoolMask Set::mayBeTrueInRange(const Range & range) /// Если во всем диапазоне одинаковый ключ и он есть в Set, то выбираем блок для in и не выбираем для notIn if (range.left_bounded && range.right_bounded && range.right_included && range.left_included && left == right) { - if (std::find(ordered_set_elements->begin(), ordered_set_elements->end(), left) != ordered_set_elements->end()) + if (std::binary_search(ordered_set_elements->begin(), ordered_set_elements->end(), left)) { can_be_false = false; can_be_true = true;