loopbackio / loopbackio/loopback-datasource-juggler

#1785 (backport of #1782) broke some like queries on SQL DBs

Open
#1,869 17 comments 0 reactions 1 assignee View on GitHub

@mitsos1os is already working on this.

Since Sep 24, 2020.

bug community-contribution major regression
Dominant language
JavaScript
Stars
282
Forks
366
Avg merge
17h 4m
Merged PRs (30d)
10

Description

Starting from `loopback-datasource-juggler@3.33.2` queries using `like`, `nlike`, `ilike`, and `nilike` operators on SQL DBs (PostgreSQL in my case) fails, because the presence of parentheses (like in `{where: {name: {nlike: 'Internal service (%'}}`) or other characters forbidden by the `escapeRegEx()` cause the rewrite of the query string and the query to fail.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.