defaults in a function

From: John Fabiani <johnf(at)jfcomputer(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: defaults in a function
Date: 2012-06-06 15:08:05
Message-ID: 4FCF7255.8070002@jfcomputer.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David Johnston 2012-06-06 15:27:40 Re: defaults in a function
Previous Message rverghese 2012-06-05 18:00:19 creating a new trigger for a table on a slave host