Colon Omitted From pgSQL Assignments - Mailing list pgsql-hackers

From Charles Sheridan
Subject Colon Omitted From pgSQL Assignments
Date
Msg-id 55D3522B.1050508@swbell.net
Whole thread Raw
Responses Re: Colon Omitted From pgSQL Assignments  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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






pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Configure with thread sanitizer fails the thread test
Next
From: Pavel Stehule
Date:
Subject: Re: Colon Omitted From pgSQL Assignments