File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -205,12 +205,13 @@ impl<'src, T: IntoDatum> From<T> for DatumWithOid<'src> {
205
205
/// Implemented automatically by `#[derive(PostgresType)]`
206
206
pub trait PostgresType { }
207
207
208
- /// Creates a [`Vec< pg_sys::Oid> `] containing identifiers of the provded types.
208
+ /// Creates an array of [` pg_sys::Oid`] with the OID of each provided type
209
209
///
210
210
/// # Examples
211
211
///
212
212
/// ```
213
213
/// use pgrx::{oids_of, datum::IntoDatum};
214
+ ///
214
215
/// let oids = oids_of![i32, f64];
215
216
/// assert_eq!(oids[0], i32::type_oid().into());
216
217
/// assert_eq!(oids[1], f64::type_oid().into());
@@ -223,6 +224,7 @@ pub trait PostgresType {}
223
224
#[ macro_export]
224
225
macro_rules! oids_of {
225
226
( ) =>(
227
+ // avoid coercions to an ambiguously-typed array or slice
226
228
[ $crate:: pg_sys:: PgOid :: Invalid ; 0 ]
227
229
) ;
228
230
( $( $t: path) ,+ $( , ) ?) => (
You can’t perform that action at this time.
0 commit comments