mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: test
This commit is contained in:
parent
4b24411b42
commit
6094fc8f7a
@ -60,7 +60,20 @@ function getFieldExpression(value, ctx, operator) {
|
||||
|
||||
return Sequelize.literal(`CAST(${quotedField} AS TEXT) ${operator} ${ctx.db.sequelize.escape(value)}`);
|
||||
}
|
||||
return { [operator]: value };
|
||||
|
||||
// For MySQL and other databases, return the operator directly
|
||||
const op =
|
||||
operator === 'LIKE'
|
||||
? Op.like
|
||||
: operator === 'NOT LIKE'
|
||||
? Op.notLike
|
||||
: operator === 'ILIKE'
|
||||
? Op.like
|
||||
: operator === 'NOT ILIKE'
|
||||
? Op.notLike
|
||||
: Op.like;
|
||||
|
||||
return { [op]: value };
|
||||
}
|
||||
|
||||
export default {
|
||||
|
Loading…
x
Reference in New Issue
Block a user