Commit 941756ba authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#186977 by openwereld: LIMIT on locale module UPDATE query is not needed and...

#186977 by openwereld: LIMIT on locale module UPDATE query is not needed and is even not PostreSQL compatible, so remove
parent 8dcb5ab9
......@@ -351,7 +351,7 @@ function locale($string = NULL, $langcode = NULL) {
// This is the first use of this string under current Drupal version. Save version
// and clear cache, to include the string into caching next time. Saved version is
// also a string-history information for later pruning of the tables.
db_query("UPDATE {locales_source} SET version = '%s' WHERE lid = %d LIMIT 1", VERSION, $translation->lid);
db_query("UPDATE {locales_source} SET version = '%s' WHERE lid = %d", VERSION, $translation->lid);
cache_clear_all('locale:', 'cache', TRUE);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment