appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.62k stars 3.73k forks source link

[Bug]: Postgres | Unable to retrieve Money datatype table records if value contains more than 3 digits (before decimal) #14549

Open Aishwarya-U-R opened 2 years ago

Aishwarya-U-R commented 2 years ago

Is there an existing issue for this?

Description

Until 3 digits - the select query runs fine:

Screenshot 2022-06-15 at 8 16 17 AM

Insert a new record with 4 digits - example starting from 1000 & encounter the issue:

Screenshot 2022-06-15 at 8 11 43 AM

Steps To Reproduce

  1. Connect to a Postgres DS
  2. Create a table with money datatype create table moneyType(id serial primary key, cash money not null)
  3. Insert records until 3 digits: eg : 999.99 & observe data retrieval is as expected -INSERT INTO public."moneyType" ("cash") VALUES ('999.98996998');
  4. Now Insert another record with cash value 1000 or more
  5. Try retrieval & observe the error in Select
  6. Expected: money datatype should support the full range [-92233720368547758.08 to +92233720368547758.07] & allow user to insert & retrieve any value within this range just fine

Public Sample App

No response

Version

Prod/Release v1.7.2

rohan-arthur commented 5 months ago

can replicate this even with simpler data Screenshot 2024-06-04 at 15 45 48