Welcome Guest, Not a member yet? Register   Sign In
CI 1.6.1 -> DB_active_rec.php -> TRUE instead of FALSE in function "or_where_not_in"
#3

[eluser]Seppo[/eluser]
Hey Derek,
I also think it's a bug... The third parameter is $not and described as "If the statement whould be IN or NOT IN", and right now or_where_not_in does exactly the same thing as or_where_in and you can test it

Code:
$this->db->where('field', 'value');
        $this->db->or_where_not_in('a', array(1,2,3));
        echo $this->db->_compile_select();
// Produces
// SELECT * WHERE `field` = 'value' OR `a` IN (1, 2, 3)
// and should produce
// SELECT * WHERE `field` = 'value' OR `a` NOT IN (1, 2, 3)


Messages In This Thread
CI 1.6.1 -> DB_active_rec.php -> TRUE instead of FALSE in function "or_where_not_in" - by El Forum - 03-02-2008, 03:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB