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: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
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???



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-2017 The PostgreSQL Global Development Group