addisonschultz
05/31/2022, 9:00 AMtype
I have set for the column, but I'm not sure.
Basically, in a table I have numeric
column set. An example number in this column would be 3458764526524427914
When I retrieve the number (via JS client), I send something like this:
const { data, error } = await supabase
.from("table-name")
.select()
The returned value for the expected column is returned as 3458764526524428000
You can tell that it's the same number from the first half, but the last 4 digits are rounded up (to 8000
). In fact, this is the case with all of the numbers in my table (returned as rounded numbers) I have also tried this with int8
as a column type, and it is giving me the same issue.
Also interestingly enough, when the column is a numeric
type, the data/numbers (in the supabase table UI) look correct (but are returned wrong), and when the column is a int8
type, the data/numbers look incorrect (rounded) in the supabase ui (and are returned incorrectly (rounded)
What am I doing wrong??Needle
05/31/2022, 9:00 AMNeedle
05/31/2022, 10:10 AMaddisonschultz
05/31/2022, 11:44 AMsupabase
client
It is always rounded??addisonschultz
05/31/2022, 2:00 PMgaryaustin
05/31/2022, 2:50 PMNeedle
05/31/2022, 2:50 PM