Welcome Guest, Not a member yet? Register   Sign In
Question [DB Query Builder]
#4

Maybe the fake 'condition' breaks the query builder. On current 3.0.2-dev code I tested this:

Code:
$this->db->from('table AS t');
$this->db->join('table2 AS t2', 't.id = t2.t_id', 'left');
echo $this->db->get_compiled_select();

And here is the produced SQL:

Code:
SELECT *
FROM `table` AS `t`
LEFT JOIN `table2` AS `t2` ON `t`.`id` = `t2`.`t_id`
Reply


Messages In This Thread
Question [DB Query Builder] - by -V1cu- - 09-07-2015, 08:49 AM
RE: Question [DB Query Builder] - by -V1cu- - 09-07-2015, 12:07 PM
RE: Question [DB Query Builder] - by ivantcholakov - 09-07-2015, 02:45 PM
RE: Question [DB Query Builder] - by Narf - 09-08-2015, 01:04 AM
RE: Question [DB Query Builder] - by -V1cu- - 09-08-2015, 01:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB