Weird backticks behaviour in Active Record in CodeIgniter 2.0.3

后端 未结 9 1589
迷失自我
迷失自我 2020-12-29 06:08

Previously my all queries were running fine in CI version 2.0 but when I upgraded to 2.0.3 some of my SELECT queries were broken.

CI is adding

9条回答
  •  [愿得一人]
    2020-12-29 06:33

    CI_DB_active_record::where() has a third param for escaping, this has worked better for me than switching on and off CI_DB_driver::_protect_identifiers

    public function where($key, $value = NULL, $escape = TRUE)
    

    Not sure what CI version this was added in.

    HTH someone

提交回复
热议问题