pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Fabiani <johnf@jfcomputer.com>
To: pgsql-sql@postgresql.org
Subject: defaults in a function
Date: Wed, 06 Jun 2012 08:08:05 -0700
Message-ID: <4FCF7255.8070002@jfcomputer.com> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <4FCF7255.8070002@jfcomputer.com>
Permalink:  ../4FCF7255.8070002@jfcomputer.com/
Also on:    postgresql.org/message-id/4FCF7255.8070002@jfcomputer.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: johnf@jfcomputer.com
  Subject: Re: defaults in a function
  In-Reply-To: <4FCF7255.8070002@jfcomputer.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox