X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3D967D1B17A for ; Sat, 15 May 2004 03:24:20 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 00573-04 for ; Sat, 15 May 2004 03:24:01 -0300 (ADT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 3365AD1B195 for ; Sat, 15 May 2004 03:23:59 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BOsaN-0005wj-00; Sat, 15 May 2004 18:23:51 +1200 Message-ID: <40A5B773.4030604@opencloud.com> Date: Sat, 15 May 2004 18:23:47 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeffrey Melloy Cc: pgsql-jdbc@postgresql.org Subject: Re: Warnings References: <6E3CC2A2-A603-11D8-898B-000393C78AC0@visualdistortion.org> In-Reply-To: <6E3CC2A2-A603-11D8-898B-000393C78AC0@visualdistortion.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200405/91 X-Sequence-Number: 10101 Jeffrey Melloy wrote: > When I attempt to pull the warning from a statement, and display it on > the web, I'm getting some garbage at the beginning and end: > > SNOTICEC00000MQuery contains only stopword(s) or doesn't contain > lexem(s), ignoredFrewrite.cL249Rclean_fakeval_v2 > > While psql just gives "Notice: Query contains only stopwords or doesn't > contain lexem(s), ignored > > Any help would be appreciated. The "garbage" is the raw server-provided string for a 7.4 notification. The latest 7.4 driver should turn this into a human-readable form when creating SQLWarnings. This change went into CVS on Feb 16, so any driver earlier than that will show the behaviour above. I suggest you upgrade to the latest binary driver (build 213 on jdbc.postgresql.org) or rebuild the driver from current CVS yourself. -O