Re: pesky plpgsql

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Walter McGinnis <walter(at)mars-hq(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: pesky plpgsql
Date: 2003-04-03 18:54:05
Message-ID: 3E8C834D.48B30572@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Walter McGinnis wrote:
>
> Guess I'm an April Fool. When I define the following psql returns
> "CREATE":
> [...]
> devpps=# select update_cat_keys();
> NOTICE: plpgsql: ERROR during compile of update_cat_keys near line 2
> ERROR: parse error at or near ";"
>
> The select in the loop runs fine in psql. So I'm stumped...
>
> I'm pretty ignorant about plpgsql, I'm used to pl/sql.

What version of PostgreSQL and did you by any chance use a DOS editor
(or anything that creates CRLF end of lines for that matter)? Older
versions of PL/pgSQL didn't like that.

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2003-04-03 20:00:24 Re: pesky plpgsql
Previous Message Rod Taylor 2003-04-03 18:42:06 Re: Foreign key from another database