Direct converting numeric types to bool - Mailing list pgsql-hackers

From n.zhuchkov@postgrespro.ru
Subject Direct converting numeric types to bool
Date
Msg-id 495a5b5a7b55aaec48a8ac50473a7578@postgrespro.ru
Whole thread Raw
Responses Re: Direct converting numeric types to bool  (n.zhuchkov@postgrespro.ru)
Re: Direct converting numeric types to bool  (Tom Lane <tgl@sss.pgh.pa.us>)
RE: Direct converting numeric types to bool  ("Alex Ignatov" <a.ignatov@postgrespro.ru>)
List pgsql-hackers
Attached patch allow direct convertion of numeric types to bool like 
integer::bool.
Supported types:
  - smallint;
  - bigint;
  - real;
  - double precision;
  - decimal(numeric).

This functionality is helped with migration from Oracle.

-- 
Nikita Zhuchkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Disabling src/test/[ssl|ldap] when not building with SSL/LDAPsupport
Next
From: n.zhuchkov@postgrespro.ru
Date:
Subject: Re: Direct converting numeric types to bool