how do i ignore the backticks in codeigniter when using active records? i need to order by cases

后端 未结 3 1031
星月不相逢
星月不相逢 2020-12-12 02:59

how do i ignore the backticks in codeigniter when using active records? i need to order by cases

case when roll_number is null then 1 else 0 end,

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 03:41

    This could be a little old, but for someone who is looking for an answers you could add

    $this->db->_protect_identifiers=false;

    be aware that this will remove all backticks on this query

提交回复
热议问题