Direct converting numeric types to bool

From: n(dot)zhuchkov(at)postgrespro(dot)ru
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Direct converting numeric types to bool
Date: 2018-02-28 15:04:07
Message-ID: 495a5b5a7b55aaec48a8ac50473a7578@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message n.zhuchkov 2018-02-28 15:06:11 Re: Direct converting numeric types to bool
Previous Message Peter Eisentraut 2018-02-28 15:02:37 Re: Disabling src/test/[ssl|ldap] when not building with SSL/LDAP support