[fw-general] ZF2 Db\Sql\Select WHERE `name` LIKE 'cmp%' breaks the query

2012-05-15 Thread cmple
Hi, It seems like the LIKE expression cannot accept the '%' symbol when using mysqli, it just breaks the query: this works: LIKE 'cm' this doesn't: LIKE 'cm%' Is there a work around for this? Thanks! -- View this message in context:

Re: [fw-general] ZF2 Db\Sql\Select WHERE `name` LIKE 'cmp%' breaks the query

2012-05-15 Thread Ralph Schindler
Based off of what is in master, I can confirm that this works: https://github.com/ralphschindler/Zend_Db-Examples/blob/master/example-15.php What is the error/exception you are getting? -ralph On 5/13/12 9:51 PM, cmple wrote: Hi, It seems like the LIKE expression cannot accept the '%'