invalid sql query from the versioning plugin

Creating and modifying plugins.
Post Reply
Evil Azrael
Regular
Posts: 22
Joined: Sat Mar 31, 2007 9:43 am
Location: Rheinkilometer 666
Contact:

invalid sql query from the versioning plugin

Post by Evil Azrael »

i just upgraded to the latest snapshot and now i get this error when updating an article :

Code: Select all

Warning: pg_query() [function.pg-query]: Query failed: ERROR: column "v.id" must appear in the GROUP BY clause or be used in an aggregate function in /www/blog.evilazrael.de/include/db/postgres.inc.php on line 210
Error in SELECT max(v.version) AS maxVer, v.id, a.realname, v.version_date FROM serendipity_versioning AS v LEFT OUTER JOIN serendipity_authors AS a ON a.authorid = v.version_author WHERE entry_id = 25 GROUP BY v.entry_id
ERROR: column "v.id" must appear in the GROUP BY clause or be used in an aggregate function
i think i will disable this plugin as it´s not really needed.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: invalid sql query from the versioning plugin

Post by garvinhicking »

Hi!

Thanks for reporting, I fixed that pgsql bug in the plugin.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply