Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 5E4AD6331B7 for ; Tue, 22 Dec 2009 17:07:48 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 98123-05 for ; Tue, 22 Dec 2009 21:07:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 995A9633191 for ; Tue, 22 Dec 2009 17:07:37 -0400 (AST) Received: from 122-57-40-95.jetstream.xtra.co.nz ([122.57.40.95] helo=[192.168.1.168]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NNBx4-0004iK-Uv; Wed, 23 Dec 2009 10:07:31 +1300 Message-ID: <4B313504.4050707@opencloud.com> Date: Wed, 23 Dec 2009 10:07:16 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: MILTOS MILTIADOUS CC: pgsql-jdbc@postgresql.org Subject: Re: Urgent. Help needed References: <9548ecab-b2b5-422e-86a0-830b24e74a9d@k17g2000yqh.googlegroups.com> In-Reply-To: <9548ecab-b2b5-422e-86a0-830b24e74a9d@k17g2000yqh.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.475 tagged_above=-10 required=5 tests=AWL=0.124, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/90 X-Sequence-Number: 20171 MILTOS MILTIADOUS wrote: > [...] I receive back an HTTP POST status 200 (OK) but without > content (empty entity result). I'm guessing this is a strange way of saying "the query returns no rows"? Can you test with a standalone JDBC app that gets rid of all the intervening layers? > SELECT * FROM > myLocationWrapperFunction(false, '$poi_type$', false, > '$positional_accuracy$', '$longitude$', '$latitude$', > '$observer_profileid$'); Why are you quoting integer parameter values? Why are you doing string substitution yourself, rather than allowing PreparedStatement to handle parameters? That aside, you might want to turn on query logging and compare the exact queries for the case that works vs. the case that doesn't. If you are not using PreparedStatement I can't really see why there would be any differences - you're just executing a literal string. -O