summaryrefslogtreecommitdiff
path: root/src/include/catalog/pg_cast.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-01-26 02:35:51 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-01-26 02:35:51 +0000
commit8d8bf127605d0a87b22bb07e630a075506ca5e1e (patch)
tree3ad06ce423081f23df826753da0dc7f998e58822 /src/include/catalog/pg_cast.h
parent5997386a0a38f3ded28ce6eb2c2b4f110b377e46 (diff)
downloadpostgresql-8d8bf127605d0a87b22bb07e630a075506ca5e1e.tar.gz
Clean up the INET-vs-CIDR situation. Get rid of the internal is_cidr flag
and rely exclusively on the SQL type system to tell the difference between the types. Prevent creation of invalid CIDR values via casting from INET or set_masklen() --- both of these operations now silently zero any bits to the right of the netmask. Remove duplicate CIDR comparison operators, letting the type rely on the INET operators instead.
Diffstat (limited to 'src/include/catalog/pg_cast.h')
-rw-r--r--src/include/catalog/pg_cast.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/catalog/pg_cast.h b/src/include/catalog/pg_cast.h
index d0dfbecd62..db52b892fd 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.24 2005/10/21 15:45:06 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/catalog/pg_cast.h,v 1.25 2006/01/26 02:35:49 tgl Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
@@ -249,7 +249,7 @@ DATA(insert ( 718 604 1544 e ));
* INET category
*/
DATA(insert ( 650 869 0 i ));
-DATA(insert ( 869 650 0 i ));
+DATA(insert ( 869 650 1715 a ));
/*
* BitString category