内核更新
This commit is contained in:
@@ -351,7 +351,7 @@ abstract class Connection
|
||||
$result = $this->PDOStatement->execute();
|
||||
// 调试结束
|
||||
$this->debug(false);
|
||||
$procedure = 0 === strpos(strtolower(substr(trim($sql), 0, 4)), 'call');
|
||||
$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);
|
||||
@@ -535,7 +535,7 @@ abstract class Connection
|
||||
/**
|
||||
* 启动事务
|
||||
* @access public
|
||||
* @return bool|null
|
||||
* @return void
|
||||
*/
|
||||
public function startTrans()
|
||||
{
|
||||
@@ -558,7 +558,7 @@ abstract class Connection
|
||||
/**
|
||||
* 用于非自动提交状态下面的查询提交
|
||||
* @access public
|
||||
* @return boolean
|
||||
* @return void
|
||||
* @throws PDOException
|
||||
*/
|
||||
public function commit()
|
||||
@@ -575,7 +575,7 @@ abstract class Connection
|
||||
/**
|
||||
* 事务回滚
|
||||
* @access public
|
||||
* @return boolean
|
||||
* @return void
|
||||
* @throws PDOException
|
||||
*/
|
||||
public function rollback()
|
||||
|
||||
Reference in New Issue
Block a user