Re: pl/pgsql and controling loops

From: aklaver(at)comcast(dot)net (Adrian Klaver)
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Alain Roger" <raf(dot)news(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: pl/pgsql and controling loops
Date: 2008-03-27 20:19:24
Message-ID: 032720082019.2815.47EC014B000EA3E500000AFF22007503309D0A900E04050E@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


-------------- Original message ----------------------
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> aklaver(at)comcast(dot)net (Adrian Klaver) writes:
> > From: "Alain Roger" <raf(dot)news(at)gmail(dot)com>
> >> once to do a comparison they use :
> > IF (ret == 1) THEN ...
> >> once,
> > IF (ret = 1) THEN...
>
> > Both are correct.
>
> No they're not, as a simple test would convince you ...
> there is no '==' operator in SQL.
>
> regards, tom lane

I stand corrected.

--
Adrian Klaver
aklaver(at)comcast(dot)net

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2008-03-27 20:24:31 Re: Survey: renaming/removing script binaries (createdb, createuser...)
Previous Message Chris Mayfield 2008-03-27 20:15:07 Merge Joins and Views