X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id AF1D79F9CAA for ; Tue, 13 Jun 2006 02:10:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 26993-02 for ; Tue, 13 Jun 2006 02:10:40 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by postgresql.org (Postfix) with ESMTP id A48009F9316 for ; Tue, 13 Jun 2006 02:10:39 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id b29so1661613pya for ; Mon, 12 Jun 2006 22:10:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OIPTsdhre6swOGlkHrhLX4OaybLrphvjzPQ+RyJhVnd6ozkw9aTts5dB2xcWDgE9SNpKWssB1aalJ3jPljhYRHgh5R1EYQmE1jNVCZ33Xtlc5RggZWUDqu3Gvh5kJvWmwFKf2yXF4286lDjCLQUpqDT4/vtybPoSdzdU3xq2HUc= Received: by 10.35.66.13 with SMTP id t13mr2080046pyk; Mon, 12 Jun 2006 22:10:38 -0700 (PDT) Received: by 10.35.48.20 with HTTP; Mon, 12 Jun 2006 22:10:38 -0700 (PDT) Message-ID: Date: Tue, 13 Jun 2006 00:10:38 -0500 From: "Jaime Casanova" To: "renneyt@yahoo.com" Subject: Re: PLPGSQL/EXCEPTION HANDLING Cc: postgres In-Reply-To: <448E453D.3080207@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <448E453D.3080207@yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/113 X-Sequence-Number: 22075 On 6/12/06, renneyt@yahoo.com wrote: > In a function implemented in 7.4.8 I had the following error when I call > the function: > > ERROR: syntax error at or near "EXCEPTION" > > Offending line is: > EXCEPTION WHEN dup_val_on_index THEN NULL; > > When this line is removed, all is well. > that's because that construction was added in 8.0, you have to upgrade to use it -- regards, Jaime Casanova "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning." Richard Cook