Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 0753E9FA0B7 for ; Fri, 15 Dec 2006 04:15:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 95939-02 for ; Fri, 15 Dec 2006 04:15:31 -0400 (AST) X-Greylist: delayed 00:17:40.96352 by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 83B809FA3B3 for ; Fri, 15 Dec 2006 04:15:33 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from filippide.itgate.net (filippide.itgate.net [213.254.0.100]) by svr4.postgresql.org (Postfix) with ESMTP id 99BC15AF8C9 for ; Fri, 15 Dec 2006 07:57:51 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by filippide.itgate.net (Postfix) with ESMTP id 73E22E034 for ; Fri, 15 Dec 2006 08:59:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at filippide.itgate.net Received: from filippide.itgate.net ([127.0.0.1]) by localhost (filippide.itgate.net [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 9dhIjWPwi85U for ; Fri, 15 Dec 2006 08:59:13 +0100 (CET) Received: from comai04 (unknown [212.110.56.36]) by filippide.itgate.net (Postfix) with ESMTP id EE263E007 for ; Fri, 15 Dec 2006 08:59:12 +0100 (CET) Message-ID: <03a101c7201f$6396a300$0501a8c0@comai04> From: "Stefano B." To: Subject: 8.2 and nonstandard use of \\ in prepared statements Date: Fri, 15 Dec 2006 09:02:38 +0100 Organization: COMAI.TO MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_039E_01C72027.C520E830" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.603 tagged_above=0 required=5 tests=AWL, BAYES_50, HTML_50_60, HTML_MESSAGE, SPF_NEUTRAL X-Spam-Level: X-Archive-Number: 200612/77 X-Sequence-Number: 16309 This is a multi-part message in MIME format. ------=_NextPart_000_039E_01C72027.C520E830 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have installed postgresql 8.2 and I get some warning messages about = use of backslashes in my queries. I have a query like: insert into mytable (f1,f2,f3) values (?,?,?) where f3 is a binary stream when the query is executed the server returns a warning about the use of = backslashes in the query: postgresWARNING: nonstandard use of \\ in a string literal at character = 96 2006-12-15 08:17:17 CET [local] dms postgresHINT: Use the escape string = syntax for backslashes, e.g., E'\\'. 2006-12-15 08:17:17 CET [local] dms postgresLOG: statement: insert into = synch_list (s_name,s_client,s_data) values = ('20061215083000_cast,'casteggio','PK\\003\\004\\024\\000\\010\\000\\010\= \000\\315C\\2175\\000\\000\\000\\...................') I have tryed to use the new escape sintax: insert into mytable (f1,f2,f3) values (?,?,(E?)) but it seems that the jdbc driver doesn't care about my new query and = sends the query without the new escape syntax. Is it possible to escape binary streams with the new escape sintax? Thanks in advance. Stefano ------=_NextPart_000_039E_01C72027.C520E830 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I have installed postgresql 8.2 and I = get some=20 warning messages about use of backslashes in my queries.
 
I have a query like:
 
insert into mytable (f1,f2,f3) values=20 (?,?,?)
 
where f3 is a binary = stream
 
when the query is executed the server = returns a=20 warning about the use of backslashes in the query:
 
postgresWARNING:  nonstandard use = of \\ in a=20 string literal at character 96
2006-12-15 08:17:17 CET [local] dms=20 postgresHINT:  Use the escape string syntax for backslashes, e.g.,=20 E'\\'.
2006-12-15 08:17:17 CET [local] dms postgresLOG:  = statement:=20 insert into synch_list (s_name,s_client,s_data) values=20 ('20061215083000_cast,'casteggio','PK\\003\\004\\024\\000\\010\\000\\010\= \000\\315C\\2175\\000\\000\\000\\...................')
 
I have tryed to use the new escape=20 sintax:
 
insert into mytable (f1,f2,f3) values=20 (?,?,(E?))
 
but it seems that the jdbc driver = doesn't care=20 about my new query and sends the query without the new escape=20 syntax.
 
Is it possible to escape binary streams = with the=20 new escape sintax?
Thanks in advance.
Stefano
------=_NextPart_000_039E_01C72027.C520E830--