© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•15mo ago•
3 replies
dafky2000

malformed array literal when trying to insert a 2d array of strings

I am getting this error when trying to insert a 2d array of string into a
.varchar().array().array()
.varchar().array().array()
or a
.jsonb()
.jsonb()
field. The error is:
An internal error occurred.: malformed array literal: \"[[\"saddas\",\"dasdsad\",\"dadad\",\"sdasda\"],[\"123213\",\"1321312\",\"1231313\"],[\"111111111\"],[\"aaaaaaaaa\"]]\"
An internal error occurred.: malformed array literal: \"[[\"saddas\",\"dasdsad\",\"dadad\",\"sdasda\"],[\"123213\",\"1321312\",\"1231313\"],[\"111111111\"],[\"aaaaaaaaa\"]]\"
It seems to me that drizzle is converting this array of arrays into this invalid serialized string. When I use .jsonb column type, the above is the error, when I use the varchar().array().array() I get the same error but with curly braces instead of square brackets. Pulling my hair out to figure out why this is isn't working as expected and I'm out of options. Thank you in advance 🙂
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

array of number returning strings
Drizzle TeamDTDrizzle Team / help
2y ago
sql operator with array of strings
Drizzle TeamDTDrizzle Team / help
2y ago
Drizzle complains when I'm trying to insert into a table.
Drizzle TeamDTDrizzle Team / help
2y ago
How to Access an array of strings in jsonb format
Drizzle TeamDTDrizzle Team / help
3y ago