s9y 0.9-beta2, statistics and Postgres
Posted: Fri Oct 14, 2005 10:16 am
I just tried out the new beta (Postgres 7.4.7 as DB), and I'm kinda impressed by its new functionality and speed. 
Otoh, there's one thing that's annoying me a lot:
Whenever I want to have a look at the statistics, the SQL-clauses regarding the Karma-plugin throws many errors regarding the timestamp-table:
Otoh, there's one thing that's annoying me a lot:
Whenever I want to have a look at the statistics, the SQL-clauses regarding the Karma-plugin throws many errors regarding the timestamp-table:
It'd be just great if this could be fixed for the final release. Keep up the great work guys!Warning: pg_query(): Query failed: ERROR: column "e.timestamp" must appear in the GROUP BY clause or be used in an aggregate function in /var/www/blog/include/db/postgres.inc.php on line 111
Error in SELECT e.id, e.title, e.timestamp, SUM(k.visits) AS no FROM serendipity_karma AS k JOIN serendipity_entries AS e ON k.entryid = e.id WHERE k.visits IS NOT NULL AND k.visits != 0 GROUP BY e.id, e.title ORDER BY no DESC LIMIT 25
ERROR: column "e.timestamp" must appear in the GROUP BY clause or be used in an aggregate function