From 941756bad265a921fd74f8c19f83f5dfdff6b757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sat, 27 Oct 2007 14:03:36 +0000 Subject: #186977 by openwereld: LIMIT on locale module UPDATE query is not needed and is even not PostreSQL compatible, so remove --- modules/locale/locale.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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); } } -- cgit v1.2.3