summaryrefslogtreecommitdiff
path: root/src/include/catalog/pg_cast.h
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-02-27 08:31:30 +0000
committerNeil Conway <neilc@samurai.com>2005-02-27 08:31:30 +0000
commit5285b3576316b6ff6cd02834b63f0a1f3f5b3e08 (patch)
treee54973c318676863b5b7c29a6e8ef006a2f3c102 /src/include/catalog/pg_cast.h
parent2d22f16132991db1f779fae90e7f9f4df52d044c (diff)
downloadpostgresql-5285b3576316b6ff6cd02834b63f0a1f3f5b3e08.tar.gz
Add explicit casts between int4 and boolean. Patch from Sean Chittenden,
editorializing by Neil Conway. Catalog version bumped.
Diffstat (limited to 'src/include/catalog/pg_cast.h')
-rw-r--r--src/include/catalog/pg_cast.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/catalog/pg_cast.h b/src/include/catalog/pg_cast.h
index ce496a37c2..c9e3a89aee 100644
--- a/src/include/catalog/pg_cast.h
+++ b/src/include/catalog/pg_cast.h
@@ -10,7 +10,7 @@
*
* Copyright (c) 2002-2005, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/catalog/pg_cast.h,v 1.17 2005/01/01 05:43:09 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/catalog/pg_cast.h,v 1.18 2005/02/27 08:31:30 neilc Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
@@ -101,6 +101,10 @@ DATA(insert ( 1700 23 1744 a ));
DATA(insert ( 1700 700 1745 i ));
DATA(insert ( 1700 701 1746 i ));
+/* Allow explicit coercions between int4 and bool */
+DATA(insert ( 23 16 2557 e ));
+DATA(insert ( 16 23 2558 e ));
+
/*
* OID category: allow implicit conversion from any integral type (including
* int8, to support OID literals > 2G) to OID, as well as assignment coercion