brianc/node-pg-types

I am beginner so I don't know where to write this to fix date issue...

Closed this issue · 2 comments

var types = require('pg').types
types.setTypeParser(20, function(val) {
return parseInt(val)
})

Hey, no idea what you're asking here. Please try to clarify what you're seeing and we can try to help.

If you're overriding a type parser you'll want to put that in your application initialization code. Usually before you create any pooled clients. Does that help?