pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@gmail.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Gary Stainburn <gary.stainburn@ringways.co.uk>
Cc: pgsql-sql@postgresql.org
Subject: Re: create function problem
Date: Thu, 30 Dec 2010 09:47:09 -0800
Message-ID: <4D1CC59D.4030805@gmail.com> (raw)
In-Reply-To: <AANLkTikSn8RNVuMrwajxThtNk6c5UyHkYw4hXWr=tLC9@mail.gmail.com>
References: <201012301626.00240.gary.stainburn@ringways.co.uk>
	<AANLkTikSn8RNVuMrwajxThtNk6c5UyHkYw4hXWr=tLC9@mail.gmail.com>

On 12/30/2010 09:35 AM, Pavel Stehule wrote:
> Hello
>
> you badly use a IF statement. It's not C. Every IF must to finish with END IF
>
> this is
>
> IF .. THEN
> ELSEIF .. THEN ..
> ELSE
> END IF
>
> Regards
>
> Pavel Stehule

To follow up I think the OP was looking for ELSEIF not ELSE IF. Changing 
the ELSE IF to ELSEIF should fix it.


-- 
Adrian Klaver
adrian.klaver@gmail.com



view thread (8+ messages)  latest in thread

Message-ID: <4D1CC59D.4030805@gmail.com>
Permalink:  ../4D1CC59D.4030805@gmail.com/
Also on:    postgresql.org/message-id/4D1CC59D.4030805@gmail.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: adrian.klaver@gmail.com, pavel.stehule@gmail.com, gary.stainburn@ringways.co.uk
  Subject: Re: create function problem
  In-Reply-To: <4D1CC59D.4030805@gmail.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