From d58f20f77ab3793507e2c1b42144fd45fc7992f3 Mon Sep 17 00:00:00 2001 From: Joe Grund Date: Tue, 7 Jul 2020 17:42:31 -0400 Subject: [PATCH] Update column.rs Skip serialization of `relation_id` and `relation_attribute_no` so they do not appear in `sqlx-data.json` --- sqlx-core/src/postgres/column.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sqlx-core/src/postgres/column.rs b/sqlx-core/src/postgres/column.rs index 39695894b..559fd6947 100644 --- a/sqlx-core/src/postgres/column.rs +++ b/sqlx-core/src/postgres/column.rs @@ -8,7 +8,9 @@ pub struct PgColumn { pub(crate) ordinal: usize, pub(crate) name: UStr, pub(crate) type_info: PgTypeInfo, + #[cfg_attr(feature = "offline", serde(skip))] pub(crate) relation_id: Option, + #[cfg_attr(feature = "offline", serde(skip))] pub(crate) relation_attribute_no: Option, }