From: Russell Francis <rfrancis@ev.net>
To: pgsql-jdbc@postgresql.org
Subject: queries against CIDR fail against 8.0.3?
Date: Thu, 29 Sep 2005 08:52:31 -0400
Message-ID: <433BE38F.3080605@ev.net> (raw)
Greetings,
I have a web application which is running against PG 7.3.9 and seems to
work without a problem. Recently, I have been trying to run it against
8.0.3. In both cases, I am using the jdbc3-8.0-312 driver.
The application fails when running against 8.0.3 at this query.
PreparedStatement s = dbConn.prepareStatement(
"SELECT * FROM institution WHERE ( institution.network >>= ? ) LIMIT 1" );
s.setObject( 1, (String)request.getRemoteAddr() );
if( s.execute() )
{
...
}
DEBUG http-8180-Processor25 net.fitne.vlrc.actions.IndexAction - ERROR:
operator does not exist: cidr >>= character varying
net.ev.dao.DAOException: ERROR: operator does not exist: cidr >>=
character varying
at net.ev.dao.DatabaseDAO.executeStatement(DatabaseDAO.java:656)
at net.ev.dao.DatabaseDAO.find(DatabaseDAO.java:1199)
Does anyone have any ideas on how to address this issue? Or at least an
explanation as to why it works in 7.3.9 but not 8.0.3?
Thanks in advance,
Russ
Attachments:rfrancis.vcf (text/x-vcard, 260B) download
begin:vcard
fn:Russell Francis
n:Francis;Russell
org:Electronic Vision
adr:;;5 Depot Street;Athens;OH;45701;USA
email;internet:rfrancis@ev.net
title:Software Engineer
tel;work:(740)-592-2433 x 18
x-mozilla-html:FALSE
url:http://www.ev.net
version:2.1
end:vcard
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: rfrancis@ev.net
Subject: Re: queries against CIDR fail against 8.0.3?
In-Reply-To: <433BE38F.3080605@ev.net>
References: <433BE38F.3080605@ev.net>
* 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