mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正Connection类
This commit is contained in:
@@ -351,10 +351,7 @@ abstract class Connection
|
||||
$result = $this->PDOStatement->execute();
|
||||
// 调试结束
|
||||
$this->debug(false);
|
||||
$call = strtolower(substr(trim($sql), 0, 4));
|
||||
if (in_array($call, ['call', 'exec'])) {
|
||||
$procedure = true;
|
||||
}
|
||||
$procedure = in_array(strtolower(substr(trim($sql), 0, 4)), ['call', 'exec']);
|
||||
return $this->getResult($class, $procedure);
|
||||
} catch (\PDOException $e) {
|
||||
throw new PDOException($e, $this->config, $this->queryStr);
|
||||
|
||||
Reference in New Issue
Block a user