Like doesn't produce valid SQL

Issue #10 resolved
Former user created an issue

Hello, thanks for such a great class!

Let's cut to the chase:

$kupci = $db->select('*')->from('saradnik')->like('naziv', 'test', 'both')->order_by('naziv', 'asc')->fetch();

Produces

SELECT * FROM `saradnik` `naziv` LIKE '%test%' ORDER BY `naziv` ASC

Obviously, it fails to inject WHERE after table name

Comments (2)

  1. Log in to comment