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.

@gp27 gp27 marked this pull request as ready for review August 24, 2024 15:23
@gp27 gp27 force-pushed the main branch 2 times, most recently from ccf4fcf to 5039b43 Compare October 18, 2024 22:34
@gp27 gp27 force-pushed the main branch 2 times, most recently from d3e156a to 6a1617b Compare December 20, 2024 19:54
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