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
Long story short, I was using Kysely + Postgres.js using kysely-postgres-js, however the columns with text[] type are being returned as unparsed string array instead of a string array.
Returned value is '{example,example2}' instead of ['example', 'example2']
The related issue contains a comparison example of outputs from kysely and postgres.js. The SELECT * FROM roles statement at postgres.js returns the correctly parsed output; kysely does not.
Thanks a lot for the description @joshxyzhimself ! There was indeed an issue with reserved connections not being properly initialized. I've pushed a fix, and I'll make a release now.
Activity
joshxyzhimself commentedon Nov 1, 2023
My instantiation code if it helps.
joshxyzhimself commentedon Nov 2, 2023
Hi just an update, I temporarily reverted into using
node-postgresdialect to compare results and the results are below:postgres.js
node-postgres
references
node-postgresusage)porsager commentedon Nov 2, 2023
Thanks a lot for the description @joshxyzhimself ! There was indeed an issue with reserved connections not being properly initialized. I've pushed a fix, and I'll make a release now.
joshxyzhimself commentedon Nov 3, 2023
It works now, thank you very much!
Ensure reserved connections are initialized properly - fixes porsager…
fix: disable max_lifetime to prevent negative timeout warnings