tp3.2.3读写分离后,Model的lock函数是不是还是从库?

浏览:527 发布日期:2016/04/22 分类:求助交流
/**
* 查找记录
* @access public
* @param array $options 表达式
* @return mixed
*/
public function select($options=array()) {
$this->model = $options['model'];
$this->parseBind(!empty($options['bind'])?$options['bind']:array());
$sql = $this->buildSelectSql($options);
$sql = $this->str_replace_sys_keywords($sql);
$result = $this->query($sql,!empty($options['fetch_sql']) ? true : false);
return $result;
}

不论是不是lock都会执行这个select ,那个就会执行query,也就是只读实例?
最佳答案
评论( 相关
后面还有条评论,点击查看>>