Re: How to get CURRENT_DATE in a pl/pgSQL function

Поиск
Список
Период
Сортировка
От Tim Landscheidt
Тема Re: How to get CURRENT_DATE in a pl/pgSQL function
Дата
Msg-id m3d3wsn973.fsf@passepartout.tim-landscheidt.de
обсуждение исходный текст
Ответ на How to get CURRENT_DATE in a pl/pgSQL function  (Kenneth Marshall <ktm@rice.edu>)
Ответы Re: How to get CURRENT_DATE in a pl/pgSQL function  (Brian Modra <brian@zwartberg.com>)
Список pgsql-sql
Kenneth Marshall <ktm@rice.edu> wrote:

> It works using 'now' and I assume that since curtime is
> of type DATE that the assignment casts the return automatically
> to type DATE. Thank you for the ideas.
> [...]

What's wrong with Pavel's correct and to-the-point answer?

Tim



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

Предыдущее
От: Alex Hunsaker
Дата:
Сообщение: Re: plperlu user function.
Следующее
От: Brian Modra
Дата:
Сообщение: Re: How to get CURRENT_DATE in a pl/pgSQL function