P
P
panikev2020-06-22 12:06:16
Node.js
panikev, 2020-06-22 12:06:16

Why does Node make a string from a number (postgres)?

Hello! Why is a numeric value converted to a string when executing a command on the server side (screenshot attached)? I use the pg-promise package, I googled that node does not like bigint numbers, at first I summed it up in this format. Then I decided to deceive the system and converted it to a regular numeric ... But the situation has not changed, please help me solve this problem)

spoiler
5ef074ac79f3b014490808.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
panikev, 2020-06-22
@panikev

added `SELECT company, SUM(incoming_count) ::int FROM courier GROUP BY company and it worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question