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
Re: Direct converting numeric types to bool
RE: Direct converting numeric types to bool
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