defaults in a function

Поиск
Список
Период
Сортировка
От John Fabiani
Тема defaults in a function
Дата
Msg-id 4FCF7255.8070002@jfcomputer.com
обсуждение исходный текст
Ответы Re: defaults in a function  (David Johnston <polobo@yahoo.com>)
Список pgsql-sql
Hi,
In python when I create a method/function is set a default value for a 
passed value if one is not provided.

def foo(self, event = None):

In the above function if the second value is not passed a value of None 
is used as the default.

Is this possible with plpgsql???

Johnf


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

Предыдущее
От: rverghese
Дата:
Сообщение: creating a new trigger for a table on a slave host
Следующее
От: David Johnston
Дата:
Сообщение: Re: defaults in a function