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

Re: "=" or ":=" ?

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: BERTRAND Joël <joel(dot)bertrand(at)systella(dot)fr>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: "=" or ":=" ?
Date: 2008-02-28 19:48:10
Message-ID: 1204228090.16886.50.camel@dogma.ljc.laika.com (view raw or flat)
Thread:
Lists: pgsql-general
On Thu, 2008-02-28 at 20:11 +0100, BERTRAND Joël wrote:
> Tom Lane wrote:
> > =?ISO-8859-1?Q?BERTRAND_Jo=EBl?= <joel(dot)bertrand(at)systella(dot)fr> writes:
> >> What is the difference between "=" and ":=" ?
> > 
> > None; plpgsql accepts either for assignment.
> 
> 	Thank you for your answer. I suggest to add a note in documentation ;-)

I think that it is undocumented on purpose.

"=" in SQL is generally for testing equality, and having one operator
mean two completely different things can be confusing. Therefore, ":="
is encouraged.

Regards,
	Jeff Davis


In response to

pgsql-general by date

Next:From: Alan HodgsonDate: 2008-02-28 19:58:19
Subject: Re: WAL Log Size
Previous:From: Erik JonesDate: 2008-02-28 19:29:04
Subject: Re: WAL Log Size

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