Hello all,
I just upgraded to 1.6.1 and an active record query
that was previously working is now failing in a strange
way:
$this->db->select("*,
DATE_FORMAT(endtime, ‘%b %d, %Y %l:%i %p’) as prettyend,
DATE_FORMAT(starttime, ‘%b %d, %Y %l:%i %p’) as prettystart");
$query = $this->db->get(’assignments’);
produces:
SELECT *, DATE_FORMAT(`endtime`, ‘%b %d, %Y %l:%i %p’) as prettyend, DATE_FORMAT(`starttime`, %Y %l:%i %p’) as prettystart FROM (`assignments`)
Note that the first DATE_FORMAT turned out fine, but the second one is
missing the quote before the format string. This causes mysql to choke.
Adding FALSE as the second parameter to the select function doesn’t help.
If I remove the comma from the format string the problem goes away.
It also seems to go away if the two format strings are different. Even
if I just add a leading space to one of them!
Any ideas?
thanks,
az
