TP5访问存储过程的BUG

浏览:427 发布日期:2019/01/23 分类:ThinkPHP5专区 关键字: TP5 存储过程
TP5在访问存储过程异常(含有 动态SQL)
暂时处理办法:
if (empty($this->config['dsn'])) {
$this->config['dsn'] = $this->parseDsn($this->config);
}
$db = new \PDO($this->config['dsn'], $this->config['username'], $this->config['password'], $this->config['params']);
$data = $db->query($sql);
$out = [];
foreach ($data as $v) {
$out[] = $v;
}
return [$out];
最佳答案
评论( 相关
后面还有条评论,点击查看>>