[eluser]nevsie[/eluser]
Not 100% sure this is a bug, but it is something that does not work for me and i am unsure why and no one else could help - hence i am guessing it is a bug!
========================
i am trying to run this query through active record, but it seems to be causing errors when outputted, or at least causes problems in the final SQL string produced:
$this->db->group_by("DATE_FORMAT(expdate, '%Y-%m')");
seems to output in the sql string:
GROUP BY DATE_FORMAT(expdate, `'%Y-%m')`
am i doing something obviously wrong here - or ar the quotes being converted or…
note the full query runs when i manually enter it including it as:
GROUP BY DATE_FORMAT(expdate, '%Y-%m')
any help or ideas appreciated. or is it maybe a bug or missing feature from CI’s active record feature?