Search found 9 matches

by cite
Sat Sep 12, 2009 12:30 pm
Forum: Bugs
Topic: [patch] GROUP BY in PostgreSQL 8.3
Replies: 1
Views: 1658

[patch] GROUP BY in PostgreSQL 8.3

I was getting random errors in my postgresql.log, like e.g.:

2009-09-07 07:11:56 CEST ERROR: column "e.timestamp" must appear in the GROUP BY clause or be used in an aggregate function
2009-09-07 07:11:56 CEST STATEMENT: SELECT DISTINCT e.id, e.timestamp
FROM s9y_entries e

LEFT JOIN s9y ...
by cite
Thu Sep 25, 2008 5:11 am
Forum: Bugs
Topic: S9Y 1.3.1: Missing GROUP BY statement (pgsql)?
Replies: 13
Views: 6559

While I don't have a solution yet I can report that pgsql 8.2 does not report an error for the query I mentioned. Seems only 8.3 is affected.
by cite
Wed Sep 24, 2008 5:22 pm
Forum: Bugs
Topic: S9Y 1.3.1: Missing GROUP BY statement (pgsql)?
Replies: 13
Views: 6559

s9y=# SELECT count(distinct e.id) AS orderkey, max(e.timestamp) AS timestamp FROM s9y_entries AS e LEFT OUTER JOIN s9y_entryproperties ep_no_frontpage ON (e.id = ep_no_frontpage.entryid AND ep_no_frontpage.property = 'ep_no_frontpage') LEFT OUTER JOIN s9y_entryproperties ep_access ON (e.id = ep ...
by cite
Wed Sep 24, 2008 1:51 pm
Forum: Bugs
Topic: S9Y 1.3.1: Missing GROUP BY statement (pgsql)?
Replies: 13
Views: 6559

Hi there,

and thanks for your quick response.

It doesn't work with this fix, either.

My knowledge of SQL is very limited, but I think the problem arises because of the two columns used as keys in the ORDER BY statement, only one (orderkey) is derived by means of an aggregate funkction (count(e.id ...
by cite
Wed Sep 24, 2008 11:36 am
Forum: Bugs
Topic: S9Y 1.3.1: Missing GROUP BY statement (pgsql)?
Replies: 13
Views: 6559

Sorry for pushing this one - is there a solution available?


Cheers
Stefan
by cite
Thu Sep 18, 2008 4:25 pm
Forum: Bugs
Topic: S9Y 1.3.1: Missing GROUP BY statement (pgsql)?
Replies: 13
Views: 6559

Sorry, I didn't make myself clear: The query is changed, but it still complains about improper usage of e.timestamp.


2008-09-18 16:00:28 CEST ERROR: column "e.timestamp" must appear in the GROUP BY clause or be used in an aggregate function
2008-09-18 16:00:28 CEST STATEMENT: SELECT count ...
by cite
Thu Sep 18, 2008 4:04 pm
Forum: Bugs
Topic: S9Y 1.3.1: Missing GROUP BY statement (pgsql)?
Replies: 13
Views: 6559

Yes, the code is in include/plugin_internal_inc.php, but the fix you suggested doesn't change the error message I get in the pgsql logs.


Cheers
Stefan
by cite
Thu Sep 18, 2008 11:53 am
Forum: Bugs
Topic: S9Y 1.3.1: Missing GROUP BY statement (pgsql)?
Replies: 13
Views: 6559

Yes - GET /index.php it is, i.e. the error is raised about 21 times every time the blog is accessed.

Plugin list is as follows:

@serendipity_calendar_plugin
@serendipity_quicksearch_plugin
@serendipity_archives_plugin
@serendipity_categories_plugin
serendipity_event_trackback
serendipity ...
by cite
Wed Sep 17, 2008 6:53 pm
Forum: Bugs
Topic: S9Y 1.3.1: Missing GROUP BY statement (pgsql)?
Replies: 13
Views: 6559

S9Y 1.3.1: Missing GROUP BY statement (pgsql)?

The reported query is:

SELECT count(e.id) AS orderkey FROM s9y_entries AS e LEFT OUTER JOIN s9y_entryproperties ep_no_frontpage ON (e.id = ep_no_frontpage.entryid AND ep_no_frontpage.property = 'ep_no_frontpage') LEFT OUTER JOIN s9y_entryproperties ep_access ON (e.id = ep_access.entryid AND ep ...