Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
22.64k stars 1.57k forks source link

Value in Oracle DB is different with SQL query result in budibase #14550

Closed fghhunter closed 1 month ago

fghhunter commented 1 month ago

Checklist

Hosting

Describe the bug The number field in the result of Oracle SQL query shown in left side has a very small gap against the value stored in DB. Even if use Round method to keep 2 decimal places. image Table component view: image DB view: image

To Reproduce Steps to reproduce the behavior:

  1. Connect to Oracle DB
  2. Make a query and test, result will show the gap
  3. Add table component in the screen, set oracle query as data source, gap will show in the table.

Expected behavior The value of sql query result should be the same with DB.

Screenshots Show above.

App Export

Desktop (please complete the following information):

Additional context Budibase running on Ubuntu2404

linear[bot] commented 1 month ago

BUDI-8634 Value in Oracle DB is different with SQL query result in budibase

mike12345567 commented 1 month ago

Hi @fghhunter - sadly this is the nature of numbers in JS - when converted to decimals there is a chance of inaccuracy like this occurring - it is best in these cases to use the query transformer https://docs.budibase.com/docs/transformers to round the JS numbers to get the result set you expect/desire.

fghhunter commented 1 month ago

@mike12345567 thank you, I know nothing about JS, just a non-it staff. but budibase is an amazing tool.