X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 32792D81CE for ; Thu, 29 Sep 2005 09:52:33 -0300 (ADT) 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 92176-04 for ; Thu, 29 Sep 2005 12:52:28 +0000 (GMT) Received: from mail.ev.net (unknown [132.235.215.234]) by svr1.postgresql.org (Postfix) with SMTP id 908EBD706A for ; Thu, 29 Sep 2005 09:52:28 -0300 (ADT) Received: (qmail 68068 invoked by uid 98); 29 Sep 2005 08:56:54 +0000 Received: from 192.168.1.64 by mail.ev.net (envelope-from , uid 98) with qmail-scanner-1.25 (clamdscan: 0.87/1082. Clear:RC:1(192.168.1.64):. Processed in 0.120105 secs); 29 Sep 2005 08:56:54 -0000 X-Qmail-Scanner-Mail-From: rfrancis@ev.net via mail.ev.net X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.1.64):. Processed in 0.120105 secs) Received: from unknown (HELO ?192.168.1.64?) (192.168.1.64) by mail.ev.net with SMTP; 29 Sep 2005 08:56:53 +0000 Message-ID: <433BE38F.3080605@ev.net> Date: Thu, 29 Sep 2005 08:52:31 -0400 From: Russell Francis User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: queries against CIDR fail against 8.0.3? X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------040908040207040906070405" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/126 X-Sequence-Number: 13911 This is a multi-part message in MIME format. --------------040908040207040906070405 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------040908040207040906070405 Content-Type: text/x-vcard; charset=utf-8; name="rfrancis.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="rfrancis.vcf" 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 --------------040908040207040906070405--