1602 / 1602/compound

Model api does not fully work with memory

Offen
#638 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
1.6k
Forks
179
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, node.js
Bereich
backend, databases
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.