cockroachdb / cockroachdb/sequelize-cockroachdb
Sequelize CockroachDB Array Type Syntax Incorrect
Ouverte
- Langage dominant
- JavaScript
- Étoiles
- 55
- Forks
- 18
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
When creating an array, sequelize executes this command:
```
INSERT INTO "channels" ("subjects") VALUES (ARRAY[]::VARCHAR(255)[]) RETURNING *;'
```
However this results in CockroachDB throwing an error:
```
pq: cannot determine type of empty array. Consider annotating with the desired type, for example ARRAY[]:::int[]
```
But if we use 3 colons instead of two such as `ARRAY[]:::VARCHAR(255)[]` the function works as expected.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.