Nette database where clause

Notice: This thread is very old.
dfx413
Member | 9
+
0
-

Hello,
today I stumbled upon this bug / change of behaviour:

this works as expected (returns one row because the value in title contains the string second) in nette 2.0.0 but in 2.0.2 it returns empty result:

return $this->getProducts()->where('type LIKE "%second%"')->fetch();

It works in 2.0.2 when written like this:

return $this->getProducts()->where('type LIKE ?','%second%')->fetch();