Received: from typeline.homelinux.com (ANantes-104-1-3-120.abo.wanadoo.fr [80.13.99.120]) by postgresql.org (Postfix) with ESMTP id 6E26F474E71 for ; Thu, 25 Apr 2002 07:25:01 -0400 (EDT) Received: from vaio (vaio [192.168.0.200]) by typeline.homelinux.com (Postfix) with ESMTP id 5E93F3C0EF for ; Thu, 25 Apr 2002 12:57:16 +0200 (CEST) Subject: preparedStatement From: tony To: pgsql-jdbc@postgresql.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.4 Date: 25 Apr 2002 12:58:14 +0200 Message-Id: <1019732294.30789.40.camel@vaio> Mime-Version: 1.0 X-Archive-Number: 200204/206 X-Sequence-Number: 3790 Hey guys, Did you change anything in preparedStatement since 7.0x? Does it escape ' still? I have tracked my mysterious ' problem down to the fact that before (tomcat 3.x, postgresql + jdbc 7.0x) all ' inserted/selected into/from the database were escaped correctly. Now (tomcat4.0.2, postgresql + JDBC 7.2) they aren't. After crawling for hours through the forums over at Sun it seems that preparedStatement should look after single ' in queries. Waiting impatiently on your views All JSP code generated by Ultradev of course Cheers Tony Grant -- RedHat Linux on Sony Vaio C1XD/S http://www.animaproductions.com/linux2.html Macromedia UltraDev with PostgreSQL http://www.animaproductions.com/ultra.html