@@ -1110,6 +1110,8 @@ pub trait QueryBuilder:
11101110 Value :: Array ( _, None ) => write ! ( s, "NULL" ) . unwrap ( ) ,
11111111 #[ cfg( feature = "postgres-vector" ) ]
11121112 Value :: Vector ( None ) => write ! ( s, "NULL" ) . unwrap ( ) ,
1113+ #[ cfg( feature = "with-postgres-point" ) ]
1114+ Value :: Point ( None ) => s. write_str ( "NULL" ) . unwrap ( ) ,
11131115 Value :: Bool ( Some ( b) ) => write ! ( s, "{}" , if * b { "TRUE" } else { "FALSE" } ) . unwrap ( ) ,
11141116 Value :: TinyInt ( Some ( v) ) => write ! ( s, "{v}" ) . unwrap ( ) ,
11151117 Value :: SmallInt ( Some ( v) ) => write ! ( s, "{v}" ) . unwrap ( ) ,
@@ -1204,6 +1206,14 @@ pub trait QueryBuilder:
12041206 Value :: IpNetwork ( Some ( v) ) => write ! ( s, "'{v}'" ) . unwrap ( ) ,
12051207 #[ cfg( feature = "with-mac_address" ) ]
12061208 Value :: MacAddress ( Some ( v) ) => write ! ( s, "'{v}'" ) . unwrap ( ) ,
1209+ #[ cfg( feature = "with-postgres-point" ) ]
1210+ Value :: Point ( Some ( v) ) => {
1211+ s. write_str ( "'(" ) . unwrap ( ) ;
1212+ write ! ( s, "{}" , v. x( ) ) . unwrap ( ) ;
1213+ s. write_str ( "," ) . unwrap ( ) ;
1214+ write ! ( s, "{}" , v. y( ) ) . unwrap ( ) ;
1215+ s. write_str ( ")'" ) . unwrap ( ) ;
1216+ }
12071217 } ;
12081218 s
12091219 }
0 commit comments