drizzle-team / drizzle-team/drizzle-orm
malformed array literal
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
The latest version of `drizzle-kit` studio throws a "malformed array literal" error when trying to save array values in a jsonb column (this did not happen in a previous version)
worked in
`"drizzle-kit": "^0.20.14"`
broken in
`"drizzle-kit": "^0.20.17"`
column causing the error in schema:
```
strategies: text('strategies').array(),
```
value input which throws the eror:
```
["foo","bar"]
```
Details about the error in console logs:
```
length: 223,
severity: 'ERROR',
code: '22P02',
detail: '"[" must introduce explicitly-specified array dimensions.',
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: "unnamed portal parameter $1 = '...'",
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'arrayfuncs.c',
line: '272',
routine: 'array_in'
```
Contributor guide
Assessment
This issue has not been assessed yet.