pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #13892: SELECT FALSE = FALSE = TRUE; error
2+ messages / 2 participants
[nested] [flat]

* BUG #13892: SELECT FALSE = FALSE = TRUE; error
@ 2016-01-27 02:54  fotonszekta@gmail.com
  0 siblings, 1 reply; 2+ messages in thread

From: fotonszekta@gmail.com @ 2016-01-27 02:54 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      13892
Logged by:          Gábor Szabó
Email address:      fotonszekta@gmail.com
PostgreSQL version: 9.5.0
Operating system:   Windows 10 x64
Description:        

I read a post on "SELECT FALSE = FALSE = TRUE;"
(http://databaseblog.myname.nl/2016/01/when-simple-sql-can-be-complex.html)

I tried on 9.5, and it's throws an error:
ERROR: syntax error at or near "="
LINE 1: SELECT FALSE = FALSE = TRUE;
                             ^
(the error is at the second '=')

It's maybe related to "Adjust operator precedence to match the SQL
standard"

9.1 and 9.4 returns true as excepted


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #13892: SELECT FALSE = FALSE = TRUE; error
@ 2016-01-27 16:11  Tom Lane <tgl@sss.pgh.pa.us>
  parent: fotonszekta@gmail.com
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-01-27 16:11 UTC (permalink / raw)
  To: fotonszekta@gmail.com; +Cc: pgsql-bugs

fotonszekta@gmail.com writes:
> I tried on 9.5, and it's throws an error:
> ERROR: syntax error at or near "="
> LINE 1: SELECT FALSE = FALSE = TRUE;
>                              ^
> (the error is at the second '=')

> It's maybe related to "Adjust operator precedence to match the SQL
> standard"

Yes, that's an intentional change.  If you actually intend this
and it's not just a typo, add parentheses.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-01-27 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-01-27 02:54 BUG #13892: SELECT FALSE = FALSE = TRUE; error fotonszekta@gmail.com
2016-01-27 16:11 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox