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