Closed (fixed)
Project:
Drupal core
Version:
4.6.3
Component:
postgresql database
Priority:
Normal
Category:
Bug report
Reporter:
Created:
12 Nov 2005 at 22:46 UTC
Updated:
8 Dec 2005 at 20:01 UTC
Jump to comment: Most recent file
Postgresql 8.1 comes with build-in greatest() function. We create this function in database.pgsql, which brings errors.
The fix seems to be to add "" around the greatest, but I'll have to check it more before submitting a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drupal-head-plpgsql_1.diff | 2.46 KB | Cvbge |
| #1 | drupal-4-6-greatest-37383_0.diff | 897 bytes | Cvbge |
Comments
Comment #1
Cvbge commentedTwo people have reported that adding "" helps. I've checked that it works on postgresql 7.4
This patch is for 4.6, for 4.7 I want to drop dependency on plpgsql and this function will be done differently.
Comment #2
Cvbge commentedHere's a patch for cvs:
- adds a bit to CHANGELOG.txt
- supressess not-error messages in database.pgsql
- changes mysql-compatibility functions so they don't require plpgsql
After this patch gets in I'll write install.pgsql.txt for cvs, similar to 4.6
Comment #3
Cvbge commentedHmm changelog.txt shouldn't probably talk about install.txt (since it's not yet fully written/committed), but that's not a big problem.
Comment #4
dries commentedCommitted to DRUPAL-4-6 and HEAD. Thanks.
Comment #5
(not verified) commented