Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

#461 broke the like operator when special characters are used ,:() #477

@Sandr0x00

Description

@Sandr0x00

Bug report

Describe the bug

Before the change in #461, the "like" query was built like this with :value%

like.%3Avalue%25

Since the change, it is built like this:

like.%22%3Avalue%2A%22

The reason is the called pattern = sanitize_pattern_param(pattern) which surrounds the value with " whenever a "special" character ,:() is in the request.

Using " around the value will result in an empty set to be returned instead of the actual data matching :value%.

To Reproduce

Do a select query with

.like("column", ":value%")

and check the result returned from the database.

Expected behavior

Using the like operator and get values in return

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions