mirror of
https://github.com/strapi/strapi.git
synced 2025-10-29 17:04:13 +00:00
fix: search by numeric numbers in a relation (#21873)
This commit is contained in:
parent
4167026bc7
commit
c823b10e98
@ -451,7 +451,7 @@ const applyWhere = (qb: Knex.QueryBuilder, where: Where) => {
|
|||||||
|
|
||||||
const fieldLowerFn = (qb: Knex.QueryBuilder) => {
|
const fieldLowerFn = (qb: Knex.QueryBuilder) => {
|
||||||
// Postgres requires string to be passed
|
// Postgres requires string to be passed
|
||||||
if (qb.client.config.client === 'postgres') {
|
if (qb.client.dialect === 'postgresql') {
|
||||||
return 'LOWER(CAST(?? AS VARCHAR))';
|
return 'LOWER(CAST(?? AS VARCHAR))';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user