pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: andrei@ivc.com
Subject: BUG #15055: parenthesis disappear
Date: Wed, 07 Feb 2018 16:04:37 +0000
Message-ID: <151801947737.1240.172380540503895826@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15055
Logged by:          Andrei Mitran
Email address:      andrei@ivc.com
PostgreSQL version: 9.6.1
Operating system:   centos
Description:        

alter table ivc.merit_matches
  add constraint priced_or_slotted_job 
  check ((survey_code is null and slot_job_code is not null) or   
         (slot_job_code is null and survey_code is not null));
results in:
Check constraints:
    "priced_or_slotted_job" CHECK (survey_code IS NULL AND slot_job_code IS
NOT NULL OR slot_job_code IS NULL AND survey_code IS NOT NULL)

What happened to my parens around the and conditions? I am not aware of any
precedence of and over or - Am i misinformed?



view thread (2+ messages)  latest in thread

Message-ID: <151801947737.1240.172380540503895826@wrigleys.postgresql.org>
Permalink:  ../151801947737.1240.172380540503895826@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/151801947737.1240.172380540503895826@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, andrei@ivc.com
  Subject: Re: BUG #15055: parenthesis disappear
  In-Reply-To: <151801947737.1240.172380540503895826@wrigleys.postgresql.org>
  References: <151801947737.1240.172380540503895826@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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