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 4 times, most recently from 9b07475 to 33d061a Compare December 20, 2024 20:56
@gp27 gp27 deleted the branch drizzle-team:main January 7, 2025 14:32
@gp27 gp27 closed this Jan 7, 2025
@gp27 gp27 deleted the main branch January 7, 2025 14:32
@gp27 gp27 restored the main branch January 7, 2025 14:32
@gp27 gp27 reopened this Jan 7, 2025
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