This cast was previously not covered at all by the regression tests.
Author: Christoph Berg
Discussion: https://postgr.es/m/ZYQZ1hNfLd_4rzkn@msg.df7cb.de
t
(1 row)
+-- Casts
+SELECT 0::boolean;
+ bool
+------
+ f
+(1 row)
+
+SELECT 1::boolean;
+ bool
+------
+ t
+(1 row)
+
+SELECT 2::boolean;
+ bool
+------
+ t
+(1 row)
+
--
-- Clean up
-- Many tables are retained by the regression test, but these do not seem
SELECT istrue OR isfalse OR isnul FROM booltbl4;
SELECT isnul OR istrue OR isfalse FROM booltbl4;
+-- Casts
+SELECT 0::boolean;
+SELECT 1::boolean;
+SELECT 2::boolean;
+
--
-- Clean up