Closed (fixed)
Project:
Freelinking
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 May 2005 at 23:01 UTC
Updated:
10 May 2005 at 23:14 UTC
In testing freelinking 4.6 on drupal 4.5, see conversation here, I ran into an error on PostgreSQL.
user error: query: SELECT nid FROM node n WHERE title ="Some node" in includes/database.pgsql.inc on line 121.
warning: Cannot modify header information - headers already sent by (output started at includes/common.inc:344) in includes/common.inc on line 155.
Postgres doesn't appear like queries with double quotes, only single.
Patch attached.
Did not test patch against MySQL, but did test the single quote query syntax on MySQL and it worked fine. So this patch should be considered a general compatability fix.
| Comment | File | Size | Author |
|---|---|---|---|
| freelinking.module-pgsql_query.patch | 816 bytes | hystrix |
Comments
Comment #1
eafarris commentedApplied to DRUPAL-4.6 and HEAD. Thanks, hystrix! Please verify and close.
Comment #2
hystrix commentedTested. Works on 4.5.0 against psql. Closing issue.
Probably safe to release a 4.5.0 version of your module.
Comment #3
eafarris commentedBranched the existing DRUPAL-4-6 version to DRUPAL-4-5. On the next project regen on Drupal.org it should show up in the contributions repository for 4.5.x. Many thanks for your work on this.