summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-27 14:03:36 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-27 14:03:36 +0000
commit941756bad265a921fd74f8c19f83f5dfdff6b757 (patch)
treeb71db4bf19260fc782eb06e4e8c49f8ed47f8bae
parent8dcb5ab976287306a889ce9bb6d84b540f898694 (diff)
downloadbrdo-941756bad265a921fd74f8c19f83f5dfdff6b757.tar.gz
brdo-941756bad265a921fd74f8c19f83f5dfdff6b757.tar.bz2
#186977 by openwereld: LIMIT on locale module UPDATE query is not needed and is even not PostreSQL compatible, so remove
-rw-r--r--modules/locale/locale.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 0d8e720f3..675e15206 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -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);
}
}