brianc / node-pg-types

Type parsing for node-postgres
268 stars 55 forks source link

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

Closed crazyfortechsid closed 7 years ago

crazyfortechsid commented 7 years ago

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

bendrucker commented 7 years ago

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

brianc commented 7 years ago

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?