Skip to content

Commit

Permalink
Use the right type for ResultSet#read
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaskins committed Dec 3, 2024
1 parent a3caf46 commit 1920a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pg_ext/big_decimal.cr
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ module PG
end

class ResultSet
def read(t : BigRational.class)
def read(t : BigDecimal.class)
read(PG::Numeric).to_big_d
end

def read(t : BigRational?.class)
def read(t : BigDecimal?.class)
read(PG::Numeric?).try &.to_big_d
end
end
Expand Down

0 comments on commit 1920a2d

Please sign in to comment.