@@ -324,6 +324,7 @@ const INT4OID: Oid = 23;
324324const TEXTOID : Oid = 25 ;
325325const JSONOID : Oid = 114 ;
326326const JSONARRAYOID : Oid = 199 ;
327+ const CIDROID : Oid = 650 ;
327328const FLOAT4OID : Oid = 700 ;
328329const FLOAT8OID : Oid = 701 ;
329330const INETOID : Oid = 869 ;
@@ -429,6 +430,8 @@ make_postgres_type!(
429430 TEXTOID => Text ,
430431 #[ doc="JSON" ]
431432 JSONOID => Json ,
433+ #[ doc="CIDR" ]
434+ CIDROID => Cidr ,
432435 #[ doc="JSON[]" ]
433436 JSONARRAYOID => JsonArray member Json ,
434437 #[ doc="FLOAT4/REAL" ]
@@ -580,7 +583,7 @@ from_raw_from_impl!(Int8, i64)
580583from_raw_from_impl ! ( Float4 , f32 )
581584from_raw_from_impl ! ( Float8 , f64 )
582585from_raw_from_impl ! ( Json , json:: Json )
583- from_raw_from_impl ! ( Inet , IpAddr )
586+ from_raw_from_impl ! ( Inet | Cidr , IpAddr )
584587
585588from_raw_from_impl ! ( Int4Range , Range <i32 >)
586589from_raw_from_impl ! ( Int8Range , Range <i64 >)
@@ -738,7 +741,7 @@ to_raw_to_impl!(Bool, bool)
738741to_raw_to_impl ! ( ByteA , Vec <u8 >)
739742to_raw_to_impl ! ( Varchar | Text | CharN | Name , String )
740743to_raw_to_impl ! ( Json , json:: Json )
741- to_raw_to_impl ! ( Inet , IpAddr )
744+ to_raw_to_impl ! ( Inet | Cidr , IpAddr )
742745to_raw_to_impl ! ( Char , i8 )
743746to_raw_to_impl ! ( Int2 , i16 )
744747to_raw_to_impl ! ( Int4 , i32 )
0 commit comments