Welcome Guest, Not a member yet? Register   Sign In
Active record and/or like (bug?)
#1

[eluser]sqwk[/eluser]
I am just saw this in the profiler: or_like seems to use AND instead. I checked the database classes but couldn't find anything suspicious. Can someone test whether they have the same problem? (I am using 2.0)

Code:
// This active record line
$this->db->or_like('username', $username);
// writes this part of the query:
AND  username  LIKE '%foo%'

EDIT: The problem is fixed by moving the active record line around a bit—why exactly it would output AND instead of OR in specific situations I do not know though…




Theme © iAndrew 2016 - Forum software by © MyBB