X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 0EF1F9DC828 for ; Thu, 5 Jan 2006 18:09:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 01796-01 for ; Thu, 5 Jan 2006 18:09:48 -0400 (AST) X-Greylist: delayed 00:19:57.485709 by SQLgrey- Received: from mis04.de (mis04.de [85.114.159.133]) by postgresql.org (Postfix) with ESMTP id 82DCC9DC9C5 for ; Thu, 5 Jan 2006 18:09:44 -0400 (AST) Received: from eagle (M208P023.dipool.highway.telekom.at [62.46.15.247]) by mis04.de (mis04.de) with ESMTP id 81264102E1C; Thu, 5 Jan 2006 22:49:44 +0100 (CET) Received: from 127.0.0.1 (AVG SMTP 7.1.371 [267.14.13/221]); Thu, 05 Jan 2006 22:49:44 +0100 Message-ID: <00c201c61241$f05f4ef0$0101020a@eagle> From: "Markus Popp" To: Cc: Subject: Fw: Re: GROUP_CONCAT in PostgreSQL Date: Thu, 5 Jan 2006 22:49:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/17 X-Sequence-Number: 14468 ----- Original Message ----- From: "Barry Lind" To: Sent: Thursday, January 05, 2006 8:37 PM Subject: RE: Re: GROUP_CONCAT in PostgreSQL Markus, Please send this to the postgres jdbc mailing list. --Barry -----Original Message----- From: m.popp@db4free.net [mailto:m.popp@db4free.net] Sent: Thursday, January 05, 2006 12:37 AM To: Barry Lind Cc: chriskl@familyhealth.com.au Subject: Fw: Re: GROUP_CONCAT in PostgreSQL Hi Barry, looks like I've found a bug in the PostgreSQL JDBC driver (postgresql-8.0-314.jdbc3.jar and postgresql-8.1-404.jdbc3.jar). I have installed the MySQL compatibility functions (http://pgfoundry.org/projects/mysqlcompat/) in a schema named mysql. Running the query (which you find below in my mail to Christopher Kings-Lynne and in the attached source file) works fine with psql and other client tools, but from a java application, I get the error message "org.postgresql.util.PSQLException: Eingabe/Ausgabe-Fehler {0} beim Senden an das Backend.". I have attached the source file where the error occurs, on line 92, maybe it helps you for debugging ;-). Thank you! Regards, Markus Popp Am 05.01.2006 um 02:34 Uhr schrieb Christopher Kings-Lynne: > Hi Markus, > > I guess it must be some bug in the PostgreSQL JDBC driver or something :( > > Ask them perhaps: http://jdbc.postgresql.org/ > > Chris > > > Markus Popp wrote: > > Hi, > > > > thank you very much - that's great. I think it's good if there's an amicable > > relationship between PostgreSQL and MySQL and their Communities :-). > > > > There's a little problem that I have, not with the group_concat function, as > > it works perfectly well from psql and other client tools, but if I run this > > query in a Java program: > > > > SELECT a.constraint_name, a.table_name, a.constraint_type, > > mysql.group_concat(b.column_name), c.table_name, c.column_name > > FROM information_schema.table_constraints a INNER JOIN > > information_schema.key_column_usage b > > ON a.constraint_name = b.constraint_name LEFT JOIN > > information_schema.constraint_column_usage c > > ON a.constraint_name = c.constraint_name AND a.constraint_type = 'FOREIGN > > KEY' > > GROUP BY a.constraint_name, a.table_name, a.constraint_type, c.table_name, > > c.column_name > > ORDER BY a.constraint_name, a.table_name > > > > ... I get the Exception: > > > > "org.postgresql.util.PSQLException: Eingabe/Ausgabe-Fehler {0} beim Senden > > an das Backend." > > > > which means something like "Input/Output-Error {0} sending (what?) to the > > backend". > > > > The connection seems to be OK, but this query fails (only in Java) for some > > reason that I can't find out why. > > > > Do you have an idea? Thank you! > > > > Cheers, > > Markus