Very nice module, congrats.
Minor problem under PostgreSQL 8.4
When connecting to:
users/admin
This message is displayed:
* warning: pg_query() [function.pg-query]: Query failed: ERREUR: l'opérateur n'existe pas : character varying = integer LINE 1: UPDATE users SET timezone_id = 320 WHERE timezone = 7200 AND... ^ HINT: Aucun opérateur ne correspond au nom donné et aux types d'arguments. Vous devez ajouter des conversions explicites de type. in /home/html/drupal/includes/database.pgsql.inc on line 139.
* user warning: query: UPDATE users SET timezone_id = 320 WHERE timezone = 7200 AND timezone_id = 0 in /home/html/drupal/sites/all/modules/event/event.module on line 275.
In users table, timezone is a character varying(8).
Very strange, because it includes integer values.
PostgreSQL does not cast values from varchar to integer automatically.
WHERE timezone = 7200 fails.
We need to cast the value in PHP before it is sent to the database.
Bye, Jean-Michel
Comments
Comment #1
grub3 commentedI could use this patch:
This seem to be SQL99 safe, please apply after review.
Comment #2
grub3 commentedPlease discard this patch. My fault, sorry.
Comment #3
grub3 commentedCorrect patch.
Comment #4
grub3 commentedPlease read this reference doc between MySQL and PostgreSQL:
http://drupal.org/node/555536
Comment #5
grub3 commentedPatch needs review.
Comment #6
japerryEvent for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.