Welcome Guest, Not a member yet? Register   Sign In
Active Record bug sets unintended apostroph
#2

[eluser]Jason Hamilton-Mascioli[/eluser]
Yes, try to set the select's second parameter to false (as shown in the docs) to resolve this ...

Code:
$this->db->select('(SELECT SUM(payments.amount) FROM payments WHERE payments.invoice_id=4') AS amount_paid', FALSE);
$query = $this->db->get('mytable');


Messages In This Thread
Active Record bug sets unintended apostroph - by El Forum - 06-26-2012, 02:59 AM
Active Record bug sets unintended apostroph - by El Forum - 06-26-2012, 03:31 AM
Active Record bug sets unintended apostroph - by El Forum - 06-26-2012, 03:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB