CodeIgniter Forums
Active Record and Database Functions - 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: Active Record and Database Functions (/showthread.php?tid=13910)



Active Record and Database Functions - El Forum - 12-11-2008

[eluser]Jazmo[/eluser]
In case you have db_prefixes set in config.php
this
Code:
$this->db->select("C.id, C.name, COUNT(E.id)", FALSE);
will translate to
Code:
SELECT C.id, C.nimi, jbb3_COUNT(E.id)

where jbb3_ is my table prefix.

Is there a workaround somewhere? Or do i need to fall back to $this->db->query ?