Replies: 1 comment
-
Changed to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have prepared statement where we can insert a row in postgres using
drizzle/pg-core
.I want to be able to upload multiple url in the same column, so while creating the table I made the table to be of type array of text;
imageUrl: text("image_url").array()
.In the prepared statement:
imageUrl: sql.placeholder("imageUrl")
does not work.imageUrl: [ "https://placehold.co/600x400", "https://placehold.co/800x800", "https://placehold.co/1200x1000" ]
With the first option, the app does not even compile and throws this error:
I searched the issues and saw one open issue with same error but for different use cases. #1927
Can you please help me find how this can be fixed?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions