Skip to content

fix(sql): dynamic in with string array (fixes #18775) #19161

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

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

Conversation

gjuchault
Copy link

@gjuchault gjuchault commented Apr 21, 2025

What does this PR do?

This PR fixes sql(["foo", "bar"]) so it doesn't try to extract keys

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

I think the overall wanted behavior would be if no keys has been provided and the value is an object-like, then we should take its keys

Fixes #18775

How did you verify your code works?

  • I included a test for the new code, or existing tests cover it
  • I ran my tests locally and they pass (bun-debug test test-file-name.test)

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.

Incorrect Handling of Array Parameters in Bun's SQL Library for Postgres
1 participant