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

[Pg] Fixed postgres-js serialization of Date objects #2839

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gp27
Copy link

@gp27 gp27 commented Aug 24, 2024

Until version 0.29.x it was possible to pass Date objects in queries while using the postgres-js adapter.

Since 0.30.x when PR #1659 was merged, passing a Date object will result in an error: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer.

This PR adds a test to detect the problems and fixes the issues #1993 and #2009.

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

Successfully merging this pull request may close these issues.

1 participant