This commit is contained in:
Benjamin Toby
2025-09-03 13:41:05 +01:00
parent 5c3324105e
commit c5954f6ba2
6 changed files with 26 additions and 26 deletions
@@ -23,47 +23,47 @@ function sqlGenOperatorGen({ fieldName, value, equality, }) {
param: value,
};
}
else if (equality == "LIKE") {
else if (equality == "LIKE_LOWER") {
return {
str: `LOWER(${fieldName}) LIKE LOWER('%${value}%')`,
};
}
else if (equality == "LIKE_RAW") {
else if (equality == "LIKE_LOWER_RAW") {
return {
str: `LOWER(${fieldName}) LIKE LOWER('${value}')`,
param: value,
};
}
else if (equality == "LIKE_NOCASE") {
else if (equality == "LIKE") {
return {
str: `${fieldName} LIKE '%${value}%'`,
param: value,
};
}
else if (equality == "LIKE_NOCASE_RAW") {
else if (equality == "LIKE_RAW") {
return {
str: `${fieldName} LIKE '${value}'`,
param: value,
};
}
else if (equality == "NOT LIKE") {
else if (equality == "NOT_LIKE_LOWER") {
return {
str: `LOWER(${fieldName}) NOT LIKE LOWER('%${value}%')`,
};
}
else if (equality == "NOT LIKE_RAW") {
else if (equality == "NOT_LIKE_LOWER_RAW") {
return {
str: `LOWER(${fieldName}) NOT LIKE LOWER(?)`,
param: value,
};
}
else if (equality == "NOT_LIKE_NOCASE") {
else if (equality == "NOT LIKE") {
return {
str: `${fieldName} NOT LIKE '%${value}%'`,
param: value,
};
}
else if (equality == "NOT_LIKE_NOCASE_RAW") {
else if (equality == "NOT LIKE_RAW") {
return {
str: `${fieldName} NOT LIKE '${value}'`,
param: value,