Welcome Guest, Not a member yet? Register   Sign In
globally disabling protect identifiers
#5

[eluser]pocketmax[/eluser]
It still does it. Heres my constructor for my controller...

Code:
function __construct(){
                parent::Controller();
                $this->load->database('mydb');
                $this->db->_protect_identifiers = false;
        }

Heres the code in my controller

Code:
$this->db->select('id,lname,fname');
$this->db->where('timeout',null);
$this->db->get('mylog')->result_array()

And my sql now reads...

SELECT log_id, lname, fname FROM mylog WHERE "timeout" IS NULL

So when I get rid of the falses to turn it off in the commands and turn it off globally in the constructor, it still back ticks the where field yet it leaves the table name and select fields alone. weird.


Messages In This Thread
globally disabling protect identifiers - by El Forum - 01-14-2010, 11:00 AM
globally disabling protect identifiers - by El Forum - 01-14-2010, 11:20 AM
globally disabling protect identifiers - by El Forum - 01-14-2010, 11:25 AM
globally disabling protect identifiers - by El Forum - 01-14-2010, 11:27 AM
globally disabling protect identifiers - by El Forum - 01-14-2010, 11:44 AM
globally disabling protect identifiers - by El Forum - 01-14-2010, 12:04 PM
globally disabling protect identifiers - by El Forum - 01-14-2010, 01:38 PM
globally disabling protect identifiers - by El Forum - 01-14-2010, 02:05 PM
globally disabling protect identifiers - by El Forum - 01-14-2010, 02:17 PM
globally disabling protect identifiers - by El Forum - 01-14-2010, 02:28 PM
globally disabling protect identifiers - by El Forum - 01-14-2010, 02:46 PM
globally disabling protect identifiers - by El Forum - 09-12-2012, 12:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB