内核更新

This commit is contained in:
2016-08-23 18:01:41 +08:00
parent 707ebdf51d
commit 94582d442c
22 changed files with 249 additions and 286 deletions

View File

@@ -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()