pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: JDBC String to Bool spec
Date: Mon, 16 Jan 2017 09:59:24 +0100
Message-ID: <o5i217$tou$1@blaine.gmane.org> (raw)
In-Reply-To: <a001bc6478afed33e0da45f04262efc5@lawinegevaar.nl>
References: <990BE54A-5803-4B5A-A5C8-BD6DBE75B72C@me.com>
	<a001bc6478afed33e0da45f04262efc5@lawinegevaar.nl>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Mark Rotteveel schrieb am 16.01.2017 um 09:37:
> As far as I know the JDBC spec defers to the SQL standard
> specification for this. Unfortunately I don't have a copy handy to
> check how the SQL standard defines it.


    <boolean value expression> ::=
        <boolean term>
      | <boolean value expression> OR <boolean term>

    <boolean term> ::=
        <boolean factor>
      | <boolean term> AND <boolean factor>

    <boolean factor> ::=
      [ NOT ] <boolean test>

    <boolean test> ::=
      <boolean primary> [ IS [ NOT ] <truth value> ]

    <truth value> ::=
      TRUE
      | FALSE
      | UNKNOWN

    <boolean primary> ::=
        <predicate>
      | <boolean predicand>

    <boolean predicand> ::=
        <parenthesized boolean value expression>
      | <nonparenthesized value expression primary>

    <parenthesized boolean value expression> ::=
      <left paren> <boolean value expression> <right paren>

so it boils down to 

  <truth value> ::=
      TRUE
    | FALSE
    | UNKNOWN

as far as I can tell. 




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



view thread (26+ messages)  latest in thread

Message-ID: <o5i217$tou$1@blaine.gmane.org>
Permalink:  ../o5i217$tou$1@blaine.gmane.org/
Also on:    postgresql.org/message-id/o5i217$tou$1@blaine.gmane.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-jdbc@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: JDBC String to Bool spec
  In-Reply-To: <o5i217$tou$1@blaine.gmane.org>
  References: <990BE54A-5803-4B5A-A5C8-BD6DBE75B72C@me.com> <a001bc6478afed33e0da45f04262efc5@lawinegevaar.nl> <o5i217$tou$1@blaine.gmane.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