Closed (fixed)
Project:
Facebook Connect
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Feb 2009 at 12:35 UTC
Updated:
19 May 2009 at 09:30 UTC
Jump to comment: Most recent file
* warning: pg_query() [function.pg-query]: Query failed: ERROR: syntax error at or near "ON" at character 88 in /home/forum/drupal-6.9/includes/database.pgsql.inc on line 139.
* user warning: query: INSERT INTO fbconnect_users (uid, fbuid, timestamp) VALUES (3, 1205229234, 1234960723) ON DUPLICATE KEY UPDATE uid = 3 in /home/forum/drupal-6.9/sites/all/modules/fbconnect/fbconnect.module on line 375.
* Association failed
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | fbconnect.376239.patch | 2.41 KB | jaydub |
| #3 | fbconnect.376239.patch | 1.9 KB | jaydub |
Comments
Comment #1
LaNets commentedThe lastest Dev version include à fix for this bug.
Thanks for reporting.
Comment #2
wa2nlinux commentedSame error is still show up
Comment #3
jaydub commentedThe example reported above failed on PostgreSQL because the SQL used is MySQL specific (ON DUPLICATE UPDATE). However it's been replaced in the current -dev with another MYSQL specific statement REPLACE (and in another place REPLACE INTO). The attached patch addresses these two queries by simply using a DELETE and INSERT statement pair.
Comment #4
jaydub commentedRe-rolled with another query modified for compatibility
Comment #5
wa2nlinux commentedPatch aplied ...seem working well
Comment #6
buddaTested against MySQL to ensure nothing has been broken.
Seems fine.
Ready for commit.
Comment #7
buddaCommitted to CVS.