Skip to content

Commit

Permalink
Merge pull request #268 from supabase/bo/fix/numeric-display
Browse files Browse the repository at this point in the history
fix: numeric cell display
  • Loading branch information
burmecia authored May 20, 2024
2 parents 2d78c9f + 8387d34 commit 88cecab
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions supabase-wrappers/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ use std::slice::Iter;
// https://doxygen.postgresql.org/pg__foreign__table_8h.html

/// Constant can be used in [validator](ForeignDataWrapper::validator)
// Note: temporarily disable warning here, can be removed after this upstream PR
// is merged. https://github.com/pgcentralfoundation/pgrx/pull/1432.
#[allow(deprecated)]
pub const FOREIGN_DATA_WRAPPER_RELATION_ID: Oid = unsafe { Oid::from_u32_unchecked(2328) };
pub const FOREIGN_DATA_WRAPPER_RELATION_ID: Oid = BuiltinOid::ForeignDataWrapperRelationId.value();

/// Constant can be used in [validator](ForeignDataWrapper::validator)
pub const FOREIGN_SERVER_RELATION_ID: Oid = BuiltinOid::ForeignServerRelationId.value();
Expand Down Expand Up @@ -79,7 +76,7 @@ impl fmt::Display for Cell {
Cell::I32(v) => write!(f, "{}", v),
Cell::F64(v) => write!(f, "{}", v),
Cell::I64(v) => write!(f, "{}", v),
Cell::Numeric(v) => write!(f, "{:?}", v),
Cell::Numeric(v) => write!(f, "{}", v),
Cell::String(v) => write!(f, "'{}'", v),
Cell::Date(v) => unsafe {
let dt =
Expand Down

0 comments on commit 88cecab

Please sign in to comment.