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 F3D8D8B9CD8 for ; Mon, 31 Jan 2005 13:59:33 +0000 (GMT) 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 61737-04 for ; Mon, 31 Jan 2005 13:59:27 +0000 (GMT) Received: from www.postgresql.com (unknown [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id 74A318B9C1C for ; Mon, 31 Jan 2005 13:58:57 +0000 (GMT) Received: from web50402.mail.yahoo.com (web50402.mail.yahoo.com [206.190.38.67]) by www.postgresql.com (Postfix) with SMTP id 206699A8B2E for ; Mon, 31 Jan 2005 07:22:44 +0000 (GMT) Received: (qmail 83423 invoked by uid 60001); 31 Jan 2005 07:21:45 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=JPXGU7u4PVxhtI2dQYUuQzsqihP82BreqU8hNC6LRtDr/Q3AHbJnYyK/J4N+SC2EBYTVmc+5Qk9Nve61nD1VKfsqyq145N91FVi8zdop0uIMipAyad1d/zFc32fcGS76RzbwjNMYtSAPn3CIs/nT9kubJKLyWWscRxC4bMP77jY= ; Message-ID: <20050131072145.83421.qmail@web50402.mail.yahoo.com> Received: from [203.101.103.131] by web50402.mail.yahoo.com via HTTP; Sun, 30 Jan 2005 23:21:45 PST Date: Sun, 30 Jan 2005 23:21:45 -0800 (PST) From: Venkatesh Babu Subject: Help with exception: java.lang.IllegalArgumentException: \0 not allowed To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.316 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200501/298 X-Sequence-Number: 12178 Hello, I was working with java.sql.PreparedStatement. I'm getting an exception "java.lang.IllegalArgumentException: \0 not allowed" while using '\0' terminated strings as parameters for the PreparedStatement. May I know whether usage of such strings is not permitted? I'm using the PreparedStatement.setString(int parameterIndex, String x) function to set the parameters and I get the exception here. FYI, I'm using the JDBC driver pg74.213.jdbc2.jar, for Postgres 7.4. Thanks, Venkatesh __________________________________ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo! http://my.yahoo.com