Why is the first record in the output a numeric value, while the other records are strings?
This is the result regardless of whether the query parameter for Amount is modified with .toFixed(2), or if the SELECT statement has CONVERT($1,DECIMAL) . I tried a few other permutations. The SELECT does return the proper COUNT() values, but I need consistent output for subsequent steps.
Hey @ria , I find it odd that we have to be explicit setting decimal as numbers rather than having that option by default. After all decimals are numbers. Is this solution just a workaround and will be (hopefully) “properly” fixed later on?
The change put in is not a workaround and is the way to fix this issue, Javascript has a limit when it comes to numbers and the package used returns a decimal as a string so that you don’t lose precision.
This is also why we return large format numbers as strings instead of numbers because of the 16 digit length.