Re: Select default values

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: Select default values
Дата
Msg-id 396486430807241415k5df3df3fgd0550016c819fe48@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Select default values  (Giorgio Valoti <giorgio_v@mac.com>)
Ответы Re: Select default values  (Giorgio Valoti <giorgio_v@mac.com>)
Список pgsql-sql
On Thu, Jul 24, 2008 at 12:35 PM, Giorgio Valoti <giorgio_v@mac.com> wrote:

>> Um - there is no default value for a function.
>
> Without this "feature" you have to overload
> the function arguments.

You could pass a casted null to the function.  The would eliminate
function overloading.  Then internally you could handle the null by
passing DEFAULTS to you INSERT or UPDATE statements.  I don't know if
this would work for you in this case.

-- 
Regards,
Richard Broersma Jr.

Visit the Los Angles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug


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

Предыдущее
От: Giorgio Valoti
Дата:
Сообщение: Re: Select default values
Следующее
От: "Chris Hoy"
Дата:
Сообщение: Arrays, types and prodedures