slackhq / hack-sql-fake

A library for testing database driven code in Hack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LIKE queries do not work with plus signs

YazMortaz opened this issue · comments

  • Feature request
  • Question
  • Suggestion
  • Typechecker errors
  • [X ] Incorrect result
  • Cripplingly bad performance
  • Crash

Incorrect result

The following example:
When doing an AND LIKE query with a plus sign (i.e AND LIKE '%foo+bar%') the plus sign is not escaped and the query does not work correctly.

I have a fix and will be opening a PR.