X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 036E8540C8 for ; Wed, 27 Apr 2005 21:40:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19641-01 for ; Thu, 28 Apr 2005 00:40:06 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 799395409E for ; Wed, 27 Apr 2005 21:40:04 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DQx4Z-0001xr-2l; Thu, 28 Apr 2005 12:40:07 +1200 Message-ID: <427030E6.3060906@opencloud.com> Date: Thu, 28 Apr 2005 12:40:06 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alberto Rodriguez Galdo Cc: pgsql-jdbc@postgresql.org Subject: Re: possible bug References: In-Reply-To: X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------020207050700090401050001" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/184 X-Sequence-Number: 12791 This is a multi-part message in MIME format. --------------020207050700090401050001 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Alberto Rodriguez Galdo wrote: > This is the stackTrace: > > org.postgresql.util.PSQLException: ERROR: invalid message format > at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1471) > at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1256) > at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:175) > at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:389) > at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:314) > at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:306) Can't reproduce this against 8.0.0 with the build 310 jar. Testcase attached. What are you doing differently to this testcase? The schema I used (in case it wasn't an error at the Parse stage) is: test=# \d backupitem Table "public.backupitem" Column | Type | Modifiers --------------+---------+----------- idbackup | integer | pathservidor | text | pathoriginal | text | hash | text | esenlace | text | metadatos | text | You might want to try appending '?loglevel=2' to your connection URL; that should generate screeds of debugging to stderr that may be useful in debugging this. (send it to me off-list if it's large) -O --------------020207050700090401050001 Content-Type: text/plain; name="TestQuotes.java" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="TestQuotes.java" import java.sql.*; // Run with one argument: a JDBC url to connect to. public class TestQuotes { private static final String QUERY =3D "insert into backupItem (idback= up,pathservidor,pathoriginal,hash,esenlace,metadatos) values (null,'/home= /argaldo/datos/software/tomcat/tomcat/webapps/ubt/backup/dani/null/home/a= rgaldo/test/prueba','/home/argaldo/test/prueba','1C940736976FFFFFFFCFFFFF= F866EFFFFFFECFFFFFF827EFFFFFFDC413F7FFFFFFAF76FFFFFFF967','false','\n \n 420= \n 1000\n UNIX\n false\n false\n 1114629588\n 1000\n 1114644020\n \n\n')"; public static void main(String[] args) throws Exception { Class.forName("org.postgresql.Driver"); Connection c =3D DriverManager.getConnection(args[0]); =20 Statement s =3D c.createStatement(); s.executeUpdate(QUERY); =20 c.close(); } } --------------020207050700090401050001--