Closed (won't fix)
Project:
Drupal core
Version:
6.x-dev
Component:
block.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2008 at 14:13 UTC
Updated:
8 May 2013 at 14:59 UTC
Dear all,
due to some changes in postgres 8.3 http://www.postgresql.org/docs/current/static/release-8-3.html typecasts are no longer automatically allowed.
e.g. integer=character varying is not allowed.
This caused a problem sometimes when using the configuring option on blocks.module.
here is my proposed patch.
302c302
< return db_fetch_array(db_query("SELECT bx.*, bl.title FROM {boxes} bx INNER JOIN {blocks} bl ON bx.bid = bl.delta WHERE bl.module = 'block' AND bx.bid = %d", $bid));
---
> return db_fetch_array(db_query("SELECT bx.*, bl.title FROM {boxes} bx INNER JOIN {blocks} bl ON bl.delta='%d' WHERE bl.module = 'block' AND bx.bid = %d", $bid,$bid));
note the '' on bl.delta since bl.delta is varchar and bid is an integer (from a sequence).
I hope i got it right...
cheers
alexie
Comments
Comment #1
jody lynnNeeds a patch.
Comment #2
multiplextor commentedClosed. The reason: expired.