fix: Fixing incomplete string escaping. (#29772)
This commit is contained in:
parent
d21d7591c0
commit
2bce20f790
|
|
@ -316,7 +316,7 @@ export const getSimpleSQLExpression = (subject, operator, comparator) => {
|
||||||
.map(val => optionLabel(val))
|
.map(val => optionLabel(val))
|
||||||
.map(
|
.map(
|
||||||
val =>
|
val =>
|
||||||
`${quote}${isString ? String(val).replace("'", "''") : val}${quote}`,
|
`${quote}${isString ? String(val).replace(/'/g, "''") : val}${quote}`,
|
||||||
);
|
);
|
||||||
if (comparatorArray.length > 0) {
|
if (comparatorArray.length > 0) {
|
||||||
expression += ` ${prefix}${formattedComparators.join(', ')}${suffix}`;
|
expression += ` ${prefix}${formattedComparators.join(', ')}${suffix}`;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue