You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix set search path (#21)
This is so strange to me.
I've re-tested the updated npm package with a test app, and saw errors like this in the console:
`Failed to set search_path error: syntax error at or near "$1"`
The strange part is that I think that the search path setting actually worked, because the queries worked...
Anyway - looks like this kind of prepared statements don't work with not-real queries (like this one).
So instead, when we parse the connection string, we break down the list of schemas and escape each one.
Re-tested this and now i don't get the error and the search path looks good.
(PR co-authored by Claude. Because typescript)