Issues

ZF2-385: Sql\Select produces an incorrect sql query for predicates that contain '%' characters

Description

Steps: Create a Sql\Select object Add a string predicate through where('file_name like '%a') use getSqlString to retrieve the result

Expected SELECT * FROM

<

table> WHERE file_name like '%a'

Actual 'SELECT * FROM

<

table> WHERE '

If I remove the "%" character, everything works fine. Same result if I pass the predicate as an array

Comments

This actually got merged as part of https://github.com/zendframework/zf2/pull/1704