Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Doesn't scramble the where correctly

未关闭
#494 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@frbuceta 已经在做这个了。

开始于 2022年2月25日。

评估

这个 Issue 还没有评估数据。

描述

bug

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
├── [email protected]
主要语言
JavaScript
星标
118
派生
183
平均合并
3 天 7 小时
30 天内合并 PR
9

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

loopbackio/loopback-connector-postgresql 的其他 Issue

查看 loopbackio/loopback-connector-postgresql 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。