#186977 by openwereld: LIMIT on locale module UPDATE query is not needed and is even not PostreSQL compatible, so remove
parent
8dcb5ab976
commit
941756bad2
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue