Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types.setTypeParser(types.builtins.DATE) does not work #150

Open
yannxaver opened this issue Feb 24, 2024 · 0 comments
Open

types.setTypeParser(types.builtins.DATE) does not work #150

yannxaver opened this issue Feb 24, 2024 · 0 comments

Comments

@yannxaver
Copy link

Setting a type parser for (types.builtins.DATE) does not work.

"pg": "^8.11.3"

// triggers
types.setTypeParser(types.builtins.TIMESTAMPTZ, (ts) => {
  console.log('TIMESTAMP');
  console.log(ts);
});

// does not trigger
types.setTypeParser(types.builtins.DATE, (date) => {
  console.log('date');
  console.log(date);
});

I have checked the OID of the columns in my table and they are set correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant