1602 / 1602/compound

Model api does not fully work with memory

Đang mở
#638 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
1.6k
Fork
179
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, node.js
Lĩnh vực
backend, databases
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.