Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group