Weird backticks behaviour in Active Record in CodeIgniter 2.0.3

后端 未结 9 1590
迷失自我
迷失自我 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:22

    I just read a simple solution for this...

    I changed the value of var $_escape_char (system/database/drivers/mysql/mysql_driver.php, line 36..

    It was

    var $_escape_char = '`';
    

    Changed to

    var $_escape_char = ' ';
    

    and now it works... But i am affraid if I made any security issues..

    Thanks

提交回复
热议问题