CodeIgniter Forums
Possibly a bug in where_in() ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Possibly a bug in where_in() ? (/showthread.php?tid=33105)



Possibly a bug in where_in() ? - El Forum - 08-16-2010

[eluser]Clifford James[/eluser]
This doesn't work and is essential for JOIN queries:

Code:
$this->db->where_in('news.id', array(1,2,3,4,5));
//but this works
$this->db->where_in('id', array(1,2,3,4,5));
//or
$this->db->where('news.id', 1);



Possibly a bug in where_in() ? - El Forum - 08-16-2010

[eluser]Clifford James[/eluser]
In DB_driver.php is _protect_identifiers() causing the trouble.


Possibly a bug in where_in() ? - El Forum - 08-16-2010

[eluser]Clifford James[/eluser]
NVM, its was the DB cache I guess.