Merge pull request #19790 from ping-yee/250728-fix-19760

Fix #19760 - Variable 'lc_messages' can't be set to the value of 'fr_FR' prevents tables listing & logs out.
This commit is contained in:
Maurício Meneghini Fauth 2025-08-25 18:31:21 -03:00 committed by GitHub
commit b96856dd9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1125,7 +1125,7 @@ class DatabaseInterface implements DbalInterface
/* Locale for messages */
$locale = LanguageManager::getInstance()->getCurrentLanguage()->getMySQLLocale();
if ($locale) {
$this->query("SET lc_messages = '" . $locale . "';");
$this->tryQuery("SET lc_messages = '" . $locale . "';");
}
// Set timezone for the session, if required.