loopbackio / loopbackio/loopback-connector-postgresql
Doesn't scramble the where correctly
Đang mở
@frbuceta đang làm issue này rồi.
Từ ngày 25/2/2022.
bug
- Ngôn ngữ chính
- JavaScript
- Star
- 118
- Fork
- 184
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 5
Mô tả
Steps to reproduce
A call is made in Loopback 4 but it doesn't resolve the where correctly.
curl --location -g --request GET '127.0.0.1:3000/articles?filter[include][0]=attributes&filter[limit]=25&filter[where][attributes][or][0][name]=COLECCIÓN&filter[where][attributes][or][0][value][inq][0]=MARVEL&filter[where][attributes][or][0][value][inq][1]=SUPERHÉROES'
Current Behavior
loopback:connector:postgresql SQL: SELECT "id","name","value","article_id" FROM "public"."attributes" WHERE (("name"=$1 AND "value"=$2)) ORDER BY "id"
loopback:connector:postgresql Parameters: ["COLECCIÓN","[object Object]"] +6s
Expected Behavior
SQL: SELECT "id","name","value","article_id" FROM "public"."attributes" WHERE (("name"=$1 AND "value" in ($2, $3))) ORDER BY "id"
Parameters: ["COLECCIÓN","MARVEL","SUPERHÉROES"] +6s
Additional information
linux x64 16.14.0
├── loopback-connector-postgresql@5.5.0
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.