Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id F409763504C for ; Mon, 11 May 2009 14:20:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 82662-06 for ; Mon, 11 May 2009 14:20:30 -0300 (ADT) Received: from mx2.hub.org (mx2.hub.org [200.46.204.254]) by mail.postgresql.org (Postfix) with ESMTP id 03E21635059 for ; Mon, 11 May 2009 14:20:31 -0300 (ADT) X-Greylist: delayed 00:09:10.712359 by SQLgrey-1.7.6 Received: from srv01.intranet-engineering.de (bitz180.bitz.briteline.de [195.90.9.180]) by mx2.hub.org (Postfix) with ESMTP id 54EC61E80A64 for ; Mon, 11 May 2009 14:20:29 -0300 (ADT) Received: from nx.intranet-engineering.de (dbserver.ie-office.test [192.168.2.70]) by srv01.intranet-engineering.de (Postfix) with ESMTP id F37441BD65 for ; Mon, 11 May 2009 19:11:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by nx.intranet-engineering.de (Postfix) with ESMTP id E02E8472D7 for ; Mon, 11 May 2009 19:11:16 +0200 (CEST) Received: from nx.intranet-engineering.de ([127.0.0.1]) by localhost (dbserver.ie-office.test [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id haYodGzejnGx for ; Mon, 11 May 2009 19:11:16 +0200 (CEST) Received: from [192.168.2.7] (sid.ie-office.test [192.168.2.7]) by nx.intranet-engineering.de (Postfix) with ESMTPA id AEA2647255 for ; Mon, 11 May 2009 19:11:15 +0200 (CEST) Subject: prepared statement not working From: =?ISO-8859-1?Q?J=FCrgen_L=FCters?= Reply-To: jlueters@intranet-engineering.de To: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset="ISO-8859-1" Organization: Intranet Engineering GmbH Date: Mon, 11 May 2009 19:11:15 +0200 Message-Id: <1242061875.30715.5.camel@sid.ie-office.test> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/52 X-Sequence-Number: 19602 Hi, i try to get the follwong statement executed as an prepared statement. It delivers 0 results. The same statement, executed as a non prepared statement does return the correct data. Any ideas? select a.id,a.partnertyp,a.firmakurz,a.partnerstatus,a.adminstatus,a.eklassen,b.ort,b.plz,b.strasse from partner a, adresse b where a.isdeleted=0 and a.id=b.partnerid and a.partnertyp !=6 and a.eklassen like '%20:%' and b.typeid=1 and b.plz in (select c.plz from plz c,baseregion d where c.bundeslandid=d.id and d.id=4 ) order by a.firmakurz; Kind Regards Jürgen Lüters