Skip to content

Commit 42d6284

Browse files
author
minjk-bl
committed
Add backtip to query code on Subset app
1 parent 480a85f commit 42d6284

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

js/m_apps/Subset.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,17 +1615,17 @@ define([
16151615
condValue = com_util.formatString("'{0}'", cond);
16161616
}
16171617
if (oper == 'contains') {
1618-
rowSelection.appendFormat('{0}.str.contains({1})', colValue, condValue);
1618+
rowSelection.appendFormat('`{0}`.str.contains({1})', colValue, condValue);
16191619
} else if (oper == 'not contains') {
1620-
rowSelection.appendFormat('~{0}.str.contains({1})', colValue, condValue);
1620+
rowSelection.appendFormat('~`{0}`.str.contains({1})', colValue, condValue);
16211621
} else if (oper == 'starts with') {
1622-
rowSelection.appendFormat('{0}.str.startswith({1})', colValue, condValue);
1622+
rowSelection.appendFormat('`{0}`.str.startswith({1})', colValue, condValue);
16231623
} else if (oper == 'ends with') {
1624-
rowSelection.appendFormat('{0}.str.endswith({1})', colValue, condValue);
1624+
rowSelection.appendFormat('`{0}`.str.endswith({1})', colValue, condValue);
16251625
} else if (oper == 'isnull()' || oper == 'notnull()') {
1626-
rowSelection.appendFormat('{0}.{1}', colValue, oper);
1626+
rowSelection.appendFormat('`{0}`.{1}', colValue, oper);
16271627
} else {
1628-
rowSelection.appendFormat('{0}{1}{2}', colValue, oper != ''?(' ' + oper):'', condValue != ''?(' ' + condValue):'');
1628+
rowSelection.appendFormat('`{0}`{1}{2}', colValue, oper != ''?(' ' + oper):'', condValue != ''?(' ' + condValue):'');
16291629
}
16301630
if (condList.length > 1) {
16311631
rowSelection.append(')');

0 commit comments

Comments
 (0)