Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> problem z pdo, postgres + pdo = jakies jaja?
nemis
post
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 18.07.2007

Ostrzeżenie: (0%)
-----


Powinno po prostu wyświetlić posty (proste forum), dołączyć dane o użytkowniku i posegregować hronologicznie. Jak wkleje to w pgadmin'a (postgresem chodzi) to działa, a w PDO ni bata.


$query = 'select *, "user"."id" as "uid"'
.' from "post" left join "user" on "post"."user" = "user"."id"'
.' where "topic" = '.$this->topic['id'].''
.' order by "post"."id"';



Warning: PDOStatement::execute() [function.PDOStatement-execute]: SQLSTATE[42803]: Grouping error: 7 ERROR: column "post.id" must appear in the GROUP BY clause or be used in an aggregate function in ...

--
niektóre odpowiedzi na http://www.goldenline.pl/forum/php/209745 - niestety bez rezultatów
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 10:05