Closed kapouer closed 3 years ago
Hi
i just had a hard time debugging a stupid mistake:
pg.types.setTypeParser( pg.types.builtins.TIMESTAMPZ, str => myDateParser(str) );
which silently fails to call myDateParser. Can you spot the mistake ? It took me a while to get it... so i think it would be nice if setTypeParser(null, ...) threw an error.
setTypeParser(null, ...)
Totally reasonable, a PR would be appreciated/merged
Hi
i just had a hard time debugging a stupid mistake:
which silently fails to call myDateParser. Can you spot the mistake ? It took me a while to get it... so i think it would be nice if
setTypeParser(null, ...)
threw an error.