Model api does not fully work with memory
- Lingua principale
- JavaScript
- Stelle
- 1.6k
- Fork
- 179
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
gt, lt such comparisons work fine when the db is configured as mysql, but wrong with memory.
eg,
There is a model called user is generated with age, name, birthday. Using
```
User.count({age:{gt:10}}, function(err, data) {....})
```
is fine under `compound c` but not `NODE_ENV="test" compound c`, while in `config/database.coffee` the configuration is set mysql as development env and memory as test env, respectively.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Look at the model API code handling comparison operators like 'gt' and 'lt'. The issue is that these work with MySQL but not with the in-memory database adapter. Start by examining the database configuration in config/database.coffee and the adapter implementations. Run the failing test in the test environment to reproduce the bug, then trace the query logic for the memory adapter.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- backend, databases
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100