-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Error while trying to insert an json array #1016
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
Comments
Could you give your Table layout so we could try to reproduce this error? |
This looks like a syntax error with your query & not a bug with node-postgres. Particularly in the case of a plain text query without parameters the query is passed 100% unaltered to the backend server. |
@brianc Just to confirm, is what the OP asked supported? I.e. inserting an array (not a object) into a JSON/B column? I'm having an issue inserting an array into a JSON column with typeorm. It's a library that depends on this library for postgres integration. I want to know if it's a bug in that library, or a limitation of this library. Thanks |
@dcworldwide See #1143. |
Hi, this issue #442 should be reopened, since in postgres shell is possible to execute without problems:
however when trying to insert the same array using pg module I'm getting the error:
Best Regards
The text was updated successfully, but these errors were encountered: