Re: pesky plpgsql

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: pesky plpgsql
Дата
Msg-id 3E8C834D.48B30572@Yahoo.com
обсуждение исходный текст
Ответ на pesky plpgsql  (Walter McGinnis <walter@mars-hq.com>)
Список 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@Yahoo.com #



В списке pgsql-sql по дате отправления:

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: Foreign key from another database
Следующее
От: Roberto Mello
Дата:
Сообщение: Re: pesky plpgsql