79074913

Date: 2024-10-10 14:35:04
Score: 0.5
Natty:
Report link

The LIKE expression has the format string LIKE pattern, where pattern must be a string literal. In SQL, string literals must be enclosed in single quotes. So you would use something like

"trim(" + alias + "bar) like '%" + filter.getBar() + "'"

to get

where trim(this.bar) like '%2'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrey Smelik