diff --git a/dbms/src/Core/Settings.cpp b/dbms/src/Core/Settings.cpp index ede3a660cb379963e8f146d192f25c49b2d0249e..fe6e0c18b85cffc1083d1ebe5726fce8493eb076 100644 --- a/dbms/src/Core/Settings.cpp +++ b/dbms/src/Core/Settings.cpp @@ -37,7 +37,7 @@ void Settings::setProfile(const String & profile_name, const Poco::Util::Abstrac { if (key == "constraints") continue; - if (key == "profile" || key.find("profile[") == 0) /// Inheritance of profiles from the current one. + if (key == "profile" || 0 == key.compare(0, strlen("profile["), "profile[")) /// Inheritance of profiles from the current one. setProfile(config.getString(elem + "." + key), config); else set(key, config.getString(elem + "." + key));