Re: Postgres 9 alpha 5 revised, stored proc

Поиск
Список
Период
Сортировка
От Andy Colson
Тема Re: Postgres 9 alpha 5 revised, stored proc
Дата
Msg-id 4BBD3398.5050903@squeakycode.net
обсуждение исходный текст
Ответ на Re: Postgres 9 alpha 5 revised, stored proc  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 04/07/2010 08:34 PM, Tom Lane wrote:
> Andy Colson<andy@squeakycode.net>  writes:
>> I have this stored proc that works in pg 8.4.
>> create or replace function roundts(ts timestamp) returns timestamp as $$
>> declare
>>     tmp integer;
>>     result timestamp;
>>     offset interval;
>
> OFFSET is a reserved word:
> http://developer.postgresql.org/pgdocs/postgres/sql-keywords-appendix.html
>
> Older versions of plpgsql didn't have quite the same rules about
> reserved words as the main SQL parser.  In 9.0 the rules are much
> more nearly the same; in particular, unquoted use of reserved words
> won't work.
>
>             regards, tom lane

Ah, thank you.  Variable-name-changing-time again.

-Andy

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Postgres 9 alpha 5 revised, stored proc
Следующее
От: Warren Bell
Дата:
Сообщение: Unique cosntraint based on contents of a field?