This commit is contained in:
Andrey Mironov 2015-10-09 17:52:45 +03:00
parent 4e66eb2884
commit d5caf72ca7

View File

@ -225,6 +225,11 @@ private:
std::size_t getIdentifiersColumnSize(const IdentifierNameSet & identifiers) const
{
/** for expressions containing no columns (or where columns could not be determined otherwise) assume maximum
* possible size so they do not have priority in eligibility over other expressions. */
if (identifiers.empty())
return std::numeric_limits<std::size_t>::max();
std::size_t size{};
for (const auto & identifier : identifiers)