Skip to content

v1.2.2

Latest

Choose a tag to compare

@berdim99 berdim99 released this 06 Aug 13:58
· 22 commits to main since this release
76c4212
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)