Colon Omitted From pgSQL Assignments

From: Charles Sheridan <cesheri(at)swbell(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Colon Omitted From pgSQL Assignments
Date: 2015-08-18 15:41:31
Message-ID: 55D3522B.1050508@swbell.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I was looking at PL/pgSQL documentation and realized that contrary to
spec, I've been omitting the colon ':' from assignments, e.g. writing

'x = 5' rather than the correct
'x := 5'

I don't see any error messages about this.

I am not aware of any problems due to this. I suppose that if a
condition precedes this syntax, the code could be interpreted as an
equals test.

Should I immediately update all assignments ?

Are there known scenarios where this error becomes a problem ?

Regards, Charles

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2015-08-18 15:48:43 Re: Colon Omitted From pgSQL Assignments
Previous Message Robert Haas 2015-08-18 15:14:26 Re: Configure with thread sanitizer fails the thread test