From: Richard Huxton <dev@archonet.com>
To: Larry Rosenman <ler@lerctr.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Query issue/8.0.1/Serendipity
Date: Tue, 08 Mar 2005 12:17:03 +0000
Message-ID: <422D97BF.2080307@archonet.com> (raw)
In-Reply-To: <200503080548.17179.ler@lerctr.org>
References: <200503080548.17179.ler@lerctr.org>
Larry Rosenman wrote:
> I have an 8.0.1 server running the Blogging software serendipity, and the
> following query fails with "relation e not defined", but it is on the first
> line:
>
> "SELECT timestamp FROM serendipity_entries e, serendipity_category c,
> serendipity_entrycat ec LEFT OUTER JOIN serendipity_entryproperties
I think this line here is the problem. You've told it to LEFT OUTER JOIN
from "ec", not "e".
> ep_cache_extended ON (e.id = ep_cache_extended.entryid AND
> ep_cache_extended.property = 'ep_cache_extended') LEFT OUTER JOIN
> serendipity_entryproperties ep_cache_body ON (e.id = ep_cache_body.entryid
> AND ep_cache_body.property = 'ep_cache_body') LEFT OUTER JOIN
> serendipity_entryproperties ep_access ON (e.id = ep_access.entryid AND
> ep_access.property = 'ep_access') LEFT JOIN serendipity_entryproperties
> ep_sticky ON (e.id = ep_sticky.entryid AND ep_sticky.property =
> 'ep_is_sticky') WHERE e.timestamp >= 1109656800 AND e.timestamp <= 1112335200
> AND e.timestamp <= 1110241185 AND e.isdraft = 'false' AND (ep_access.property
> IS NULL OR ep_access.value = 'member' OR ep_access.value = 'public' OR
> (ep_access.value = 'private' AND e.authorid = 1)) AND e.id = ec.entryid AND
> c.categoryid = ec.categoryid AND c.category_left BETWEEN 3 AND 4"
--
Richard Huxton
Archonet Ltd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, ler@lerctr.org
Subject: Re: Query issue/8.0.1/Serendipity
In-Reply-To: <422D97BF.2080307@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox