pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15022: Multiple + operators when parsing SQL query
2+ messages / 2 participants
[nested] [flat]

* BUG #15022: Multiple + operators when parsing SQL query
@ 2018-01-19 22:17 PG Bug reporting form <noreply@postgresql.org>
  2018-01-19 22:32 ` Re: BUG #15022: Multiple + operators when parsing SQL query David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2018-01-19 22:17 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: victoria.nope@mail.com

The following bug has been logged on the website:

Bug reference:      15022
Logged by:          Victoria Nope
Email address:      victoria.nope@mail.com
PostgreSQL version: 10.1
Operating system:   Windows 7
Description:        

When executing query like this:

SELECT 1 +++++++ 1;

parser doesn't complain. Shall we consider this as an issue?



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

* Re: BUG #15022: Multiple + operators when parsing SQL query
  2018-01-19 22:17 BUG #15022: Multiple + operators when parsing SQL query PG Bug reporting form <noreply@postgresql.org>
@ 2018-01-19 22:32 ` David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: David G. Johnston @ 2018-01-19 22:32 UTC (permalink / raw)
  To: victoria.nope@mail.com; pgsql-bugs@lists.postgresql.org

On Fri, Jan 19, 2018 at 3:17 PM, PG Bug reporting form <
noreply@postgresql.org> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      15022
> Logged by:          Victoria Nope
> Email address:      victoria.nope@mail.com
> PostgreSQL version: 10.1
> Operating system:   Windows 7
> Description:
>
> When executing query like this:
>
> SELECT 1 +++++++ 1;
>
> parser doesn't complain. Shall we consider this as an issue?
>
>
​No.

What that really says is (using just 3 + signs)

1 + (+(+1))

Not much different that writing:

1 + (-(-1))

Which is the same as:

1 + - - 1

(you cannot write 1 + --1 since -- is the comment indicator)

David J.


​

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


end of thread, other threads:[~2018-01-19 22:32 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19 22:17 BUG #15022: Multiple + operators when parsing SQL query PG Bug reporting form <noreply@postgresql.org>
2018-01-19 22:32 ` David G. Johnston <david.g.johnston@gmail.com>

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