Comparer les révisions
2 Révisions
Auteur | SHA1 | Date |
---|---|---|
Daniel Seifert | 9b1a1b24ed | |
Daniel Seifert | b76507025e |
|
@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.3.1] - 2021-04-29
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- prevent the use of not countable parameters in prepared statemant rendering
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## [1.3.0] - 2021-03-02
|
## [1.3.0] - 2021-03-02
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -70,10 +70,11 @@ class OxidSQLLogger implements SQLLogger
|
||||||
* @param array $params
|
* @param array $params
|
||||||
* @throws \OxidEsales\Eshop\Core\Exception\DatabaseConnectionException
|
* @throws \OxidEsales\Eshop\Core\Exception\DatabaseConnectionException
|
||||||
*/
|
*/
|
||||||
public function getPreparedStatementQuery(&$sql, array $params = null)
|
public function getPreparedStatementQuery(&$sql, $params = [])
|
||||||
{
|
{
|
||||||
if (class_exists(d3database::class)
|
if (class_exists(d3database::class)
|
||||||
&& method_exists(d3database::class, 'getPreparedStatementQuery')
|
&& method_exists(d3database::class, 'getPreparedStatementQuery')
|
||||||
|
&& is_array($params)
|
||||||
&& count($params)
|
&& count($params)
|
||||||
&& ($query = d3database::getInstance()->getPreparedStatementQuery($sql, $params))
|
&& ($query = d3database::getInstance()->getPreparedStatementQuery($sql, $params))
|
||||||
&& strlen(trim($query))
|
&& strlen(trim($query))
|
||||||
|
|
Chargement…
Référencer dans un nouveau ticket