CodeIgniter Forums
dbprefix in where clause - 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: dbprefix in where clause (/showthread.php?tid=56696)



dbprefix in where clause - El Forum - 01-11-2013

[eluser]Unknown[/eluser]
I'm currenty trying out the 3.0 dev release of CI and everything works fine so far. I just noticed one thing:

If I specify my table in a where clause e.g.
Code:
$this->db->where('users.user_id', $user_id);
the dbprefix doesn't get added in front of users.user_id.

I don't know if this is a bug or just can't be done but I thought I'd report it.

Best Regards,

Evo


dbprefix in where clause - El Forum - 01-11-2013

[eluser]CroNiX[/eluser]
Please report it on github if it hasn't been already.
https://github.com/EllisLab/CodeIgniter/issues