tusken icon indicating copy to clipboard operation
tusken copied to clipboard

JSON array inputs may need explicit cast/stringify

Open aleclarson opened this issue 3 years ago • 0 comments

If you're calling a Postgres function that accepts t.json or t.jsonb and you pass a JS array, it will be serialized as a Postgres array (not a JSON array). This is a limitation of node-postgres. It also affects INSERT queries, but the runtime types I'm adding for #14 will fix that in the next alpha version.

Related to https://github.com/brianc/node-postgres/issues/2012

aleclarson avatar Sep 10 '22 20:09 aleclarson