Closed (fixed)
Project:
Drupal core
Version:
4.6.4
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2005 at 19:25 UTC
Updated:
19 Aug 2006 at 19:26 UTC
Moderating comments fails with PostgreSQL database and 4.6.x. The problem is similar as in this bug, except that it affects ALL users, not just non-admins.
When the moderate button is clicked, the following error appears:
warning: pg_query(): Query failed: ERROR: invalid input syntax for integer: "" in /var/www/html/includes/database.pgsql.inc on line 45.
user error:
query: UPDATE liitto_users… (I had to cut the rest of the query off to avoid drupal.org input data check failures, sorry.) in /var/www/html/includes/database.pgsql.inc on line 62.
warning: Cannot modify header information - headers already sent by (output started at /var/www/html/includes/common.inc:320) in /var/www/html/includes/bootstrap.inc on line 701.
Comments
Comment #1
grcm commentedI tried to file a decent bug report, but the watchdog didn't like me posting SQL.
I have the same problem with an update on the users table during moderation.
Drupal is trying to insert strings in to the sort, threshold and mode columns- these are actually smallints.
Comment #2
purluno commentedI clicked 'moderate comments' and the error is caused.
('*data*' => 'data')
I think the problem is from user.module, function user_save(...).
PostgreSQL doesn't allow assigning string to integer-type column. So it's needed to substitute '' to appropriate integer value.
Comment #3
magico commented