<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - błąd z w zapytaniu?]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=111&amp;type=atom"/>
	<updated>2008-11-28T14:51:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=111</id>
		<entry>
			<title type="html"><![CDATA[Odp: błąd z w zapytaniu?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=384#p384"/>
			<content type="html"><![CDATA[Jeśli chcesz uzyc grupowania to musisz grupowac po wszystkich kolumnach (funkcje agregujace nie sa traktowane jak kolumny i po nich nie musisz grupowac), ktore chcesz wypisac selectem. W errorze masz tylko pierwsza kolumne ktora powinna byc w grupowaniu. Jak ja dodasz to wyskoczy blad na nastepnej wypisywanej kolumnie, ktorej nie ma group by  tzn na r_poster itd.]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2008-11-28T14:51:02Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=384#p384</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[błąd z w zapytaniu?]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=383#p383"/>
			<content type="html"><![CDATA[witam
próbuję doinstalować do swojego forum punbb ten dodatek [url=http://www.punres.org/files.php?pid=467]User_Diaries_1.1.2[/url]. Został on napisany pod mysql, jednak chcę go jakoś przenieść na postgre, który użytkuję i pojawił się błąd z którym nie wiem co zrobić, bo zapytanie wygląda mi na dobre, a błąd jednak wyskakuje... 
[quote]File: /usr/local/apache2/htdocs/forum/diary.php
Line: 971

PunBB reported: Unable to fetch diary submission list for forum

Database reported: ERROR: column "r.id" must appear in the GROUP BY clause or be used in an aggregate function

Failed query: SELECT r.id , r.poster, r.poster_id, r.poster_ip, r.message, max(r.posted) as max_posted, r.entry_date, r.image_ext, u.username, u.location FROM zzpun_diary as r LEFT JOIN zzpun_users AS u ON r.poster_id=u.id WHERE extract(year FROM entry_date) = 2008 GROUP BY poster_id ORDER BY max_posted DESC[/quote]]]></content>
			<author>
				<name><![CDATA[Jaason]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=457</uri>
			</author>
			<updated>2008-11-28T13:24:17Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=383#p383</id>
		</entry>
</feed>
