mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix(filter box): replace freeform where clause with ilike (#14900)
This commit is contained in:
parent
004a6d9e54
commit
20b86f81e7
@ -223,10 +223,10 @@ class FilterBox extends React.PureComponent {
|
|||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
clause: 'WHERE',
|
clause: 'WHERE',
|
||||||
comparator: null,
|
expressionType: 'SIMPLE',
|
||||||
expressionType: 'SQL',
|
subject: key,
|
||||||
// TODO: Evaluate SQL Injection risk
|
operator: 'ILIKE',
|
||||||
sqlExpression: `lower(${key}) like '%${input}%'`,
|
comparator: `%${input}%`,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: null,
|
: null,
|
||||||
|
Loading…
Reference in New Issue
Block a user