mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
Query类增加getlastsql方法
This commit is contained in:
@@ -270,7 +270,7 @@ class Request
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取URL访问根目录
|
||||
* 获取URL访问根地址
|
||||
* @access public
|
||||
* @param string $url URL地址
|
||||
* @return string
|
||||
|
||||
@@ -178,6 +178,16 @@ class Query
|
||||
return $this->connection->getLastInsID();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取最近一次查询的sql语句
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function getLastSql()
|
||||
{
|
||||
return $this->connection->queryStr;
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行数据库事务
|
||||
* @access public
|
||||
|
||||
Reference in New Issue
Block a user