Re: boolean states

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: boolean states
Дата
в 22:04:58
Msg-id
201105100104.p4A14n024448@momjian.us
Ответ на
Re: boolean states (Kevin Grittner)
Список
Дерево обсуждения
Re: boolean states "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: boolean states Bruce Momjian <bruce@momjian.us>
Re: boolean states Josh Kupershmidt <schmiddy@gmail.com>
Re: boolean states Bruce Momjian <bruce@momjian.us>
Kevin Grittner wrote:
> Jack Douglas  wrote:
>  
> > There are two kinds of people on this earth, those who understand
> > boolean arithmatic and those who don't. I'm not one of them.
>  
> Hmmm...  From that, I don't know if you do.  Which do I record in the
> understands_boolean column of the database record for you?  Dang, I
> knew I should have had *two* flags: known_to_understand_boolean and
> known_to_not_understand_boolean.  That would have been much simpler
> than allowing NULL for UNKNOWN....

Attached patch applied to HEAD and 9.0.X.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
new file mode 100644
index 657835c..c1a34fb
*** a/doc/src/sgml/func.sgml
--- b/doc/src/sgml/func.sgml
***************
*** 82,89 ****
       NOT</>
      
  
!     SQL uses a three-valued Boolean logic where the null value represents
!     unknown.  Observe the following truth tables:
  
      
       
--- 82,90 ----
       NOT</>
      
  
!     SQL uses a three-valued logic system with true,
!     false, and null</>, which represents unknown.
!     Observe the following truth tables:
  
      
       
В списке pgsql-docs по дате отправления
От: Euler Taveira de Oliveira
Дата:
От: Josh Kupershmidt
Дата:
Сообщение: Re: boolean states
FAQ