Skip to content

Commit

Permalink
fix(filter box): replace freeform where clause with ilike (apache#14900)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored and cccs-RyanS committed Dec 17, 2021
1 parent 0c1fbce commit 4714b07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions superset-frontend/src/visualizations/FilterBox/FilterBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4714b07

Please sign in to comment.