Skip to content

Commit bc80990

Browse files
author
Zoran Cvetkov
committed
check
1 parent 640e7d1 commit bc80990

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

store/postgres/src/relational_queries.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -539,14 +539,7 @@ impl EntityData {
539539
// table column; those will be things like the
540540
// block_range that `select *` pulls in but that we
541541
// don't care about here
542-
if key == "vid" {
543-
// VID is not in the input schema but we need it, so deserialize it too
544-
match T::Value::from_column_value(&ColumnType::Int8, json) {
545-
Ok(value) if value.is_null() => None,
546-
Ok(value) => Some(Ok((Word::from("vid"), value))),
547-
Err(e) => Some(Err(e)),
548-
}
549-
} else if let Some(column) = table.column(&SqlName::verbatim(key)) {
542+
if let Some(column) = table.column(&SqlName::verbatim(key)) {
550543
match T::Value::from_column_value(&column.column_type, json) {
551544
Ok(value) if value.is_null() => None,
552545
Ok(value) => Some(Ok((Word::from(column.field.to_string()), value))),

0 commit comments

Comments
 (0)