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

Re: cannot use column references in default expression?

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Jignesh Shah <jignesh(dot)shah1980(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: cannot use column references in default expression?
Date: 2010-05-28 17:30:59
Message-ID: 4BFFFDD3.9060708@postnewspapers.com.au (view raw or flat)
Thread:
Lists: pgsql-general
On 29/05/2010 1:20 AM, Jignesh Shah wrote:
> Could anyone please help me to get rid of following error? I want to set
> the 'ishuman' column based on the value of 'ID' column but it is not
> allowing me to do so. Any alternatives?

Use a BEFORE trigger to set it.

--
Craig Ringer

In response to

Responses

pgsql-general by date

Next:From: Jignesh ShahDate: 2010-05-28 17:41:02
Subject: Re: cannot use column references in default expression?
Previous:From: Nilesh GovindarajanDate: 2010-05-28 17:27:55
Subject: Re: cannot use column references in default expression?

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