#186977 by openwereld: LIMIT on locale module UPDATE query is not needed and is even not PostreSQL compatible, so remove

6.x
Gábor Hojtsy 2007-10-27 14:03:36 +00:00
parent 8dcb5ab976
commit 941756bad2
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}