Model api does not fully work with memory
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.6k
- Forks
- 179
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js
- Área
- backend, databases
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100