From: Oliver Jowett <oliver@opencloud.com>
To: MILTOS MILTIADOUS <mmiltiadous0@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Urgent. Help needed
Date: Wed, 23 Dec 2009 10:07:16 +1300
Message-ID: <4B313504.4050707@opencloud.com> (raw)
In-Reply-To: <9548ecab-b2b5-422e-86a0-830b24e74a9d@k17g2000yqh.googlegroups.com>
References: <9548ecab-b2b5-422e-86a0-830b24e74a9d@k17g2000yqh.googlegroups.com>
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?
> <query setProfile="false" thematic_myLocation="false" >SELECT * FROM
> myLocationWrapperFunction(false, '$poi_type$', false,
> '$positional_accuracy$', '$longitude$', '$latitude$',
> '$observer_profileid$');</query>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, mmiltiadous0@gmail.com
Subject: Re: Urgent. Help needed
In-Reply-To: <4B313504.4050707@opencloud.com>
References: <9548ecab-b2b5-422e-86a0-830b24e74a9d@k17g2000yqh.googlegroups.com> <4B313504.4050707@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox