Looking at 'My account' in a Drupal system using a PostgreSQL database and having the locale module enabled with Dutch as a default language (and nl.po imported), gives the following message appears for the account edit page (http://localhost/drupal/user/1/edit):
* warning: pg_query() [function.pg-query]: Query failed: ERROR: syntax error at or near "LIMIT" at character 64 in /var/www/drupal-cvs/includes/database.pgsql.inc on line 155.
* user warning: query: UPDATE locales_source SET version = '6.0-dev' WHERE lid = 1349 LIMIT 1 in /var/www/drupal-cvs/modules/locale/locale.module on line 354.
The reason seems to be that PostgreSQL doesn't allow a LIMIT keyword in an UPDATE query. The 'LIMIT 1' option also has no use, because the lid column is a primary key.
The attached patch removes the LIMIT part.
Comment | File | Size | Author |
---|---|---|---|
locale.module_2.patch | 1.13 KB | jpulles | |
Comments
Comment #1
JirkaRybka CreditAttribution: JirkaRybka commentedOK, the LIMIT is not necessary indeed. (I'm the one who added the query originally, didn't know that it's not cross-database compatible - sorry.)
Let's remove that unnecessary LIMIT now :-)
Comment #2
JirkaRybka CreditAttribution: JirkaRybka commentedOh, and this should go into 6.x-dev.
Comment #3
jpulles CreditAttribution: jpulles commentedNice to have such a fast response :-)
Comment #4
Gábor HojtsyIndeed, sorry for not spotting this before committing that patch. Thanks, committed.
Comment #5
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.