关于CI源码 DB_active_rec.php的问题
最近遇到了一个问题,如果数据库配置的 db_debug设置为true,就会报duplicate key错误,如果false则不会报。。看来一下源码,if ($this->db_debug)
{
//No valid data array.Folds in cases where keys and values did not match up
return $this->display_error('db_must_use_set');
}
请问这个是什么的,求详解啊。想了解一下
db_debug应该是指是否显示db错误
你说的不报错是指没有显示这个错误,而不是真的没有错误
页:
[1]