mirror of https://github.com/apache/superset.git
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',
|
||||
comparator: null,
|
||||
expressionType: 'SQL',
|
||||
// TODO: Evaluate SQL Injection risk
|
||||
sqlExpression: `lower(${key}) like '%${input}%'`,
|
||||
expressionType: 'SIMPLE',
|
||||
subject: key,
|
||||
operator: 'ILIKE',
|
||||
comparator: `%${input}%`,
|
||||
},
|
||||
]
|
||||
: null,
|
||||
|
|
Loading…
Reference in New Issue