You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case that helps, using pg-native returns the same truncated data :
var Client = require('pg-native')
var client = new Client()
client.connectSync('postgresql://xxxx', (err) => {
throw err
})
var rows = client.querySync(
`
SELECT id, maplatitude, maplongitude
FROM xxx
WHERE id = xxx
LIMIT 10
`)
console.log(rows)
And I have a workaround : it does not work correctly with double precision type, but it's ok with Numeric type and using setTypeParser.
I'll leave this open, as I think the behaviour should be the same with double precision type. There is data loss.
I get data from fields in postgresql 9.4 :
And setting up node-pg like this :
Data from pg looks like this :
But I get this with node-pg, whatever I do (default type parser, or with above override).
The result from node-pg :
I've read countless bug report and node-pg docs on this, seams like it should work correctly. Is this a bug ? Or something I'm not doing correctly ?
The text was updated successfully, but these errors were encountered: