Spread Insert does not work for array columns.
Aperta
- Lingua principale
- TypeScript
- Stelle
- 157
- Fork
- 7
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
```js
sql`insert into test_table ${spreadInsert({
array_column: ['a','b','c','d'],
})}`;
```
Yields
```postgresql
insert into "test_table" ("array_column") VALUES ($1, $2, $3, $4)
```
rather than joining and formatting the array value as such
```postgresql
ARRAY['a','b','c','d']
```
or
```postgresql
'{"a","b","c","d"}'
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.