Compare commits

...

2 Commits
1.3.0 ... 1.3.1

2 changed files with 10 additions and 1 deletions

View File

@ -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/),
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
### Fixed

View File

@ -70,10 +70,11 @@ class OxidSQLLogger implements SQLLogger
* @param array $params
* @throws \OxidEsales\Eshop\Core\Exception\DatabaseConnectionException
*/
public function getPreparedStatementQuery(&$sql, array $params = null)
public function getPreparedStatementQuery(&$sql, $params = [])
{
if (class_exists(d3database::class)
&& method_exists(d3database::class, 'getPreparedStatementQuery')
&& is_array($params)
&& count($params)
&& ($query = d3database::getInstance()->getPreparedStatementQuery($sql, $params))
&& strlen(trim($query))