Vergelijk commits
2 Commits
Auteur | SHA1 | Datum | |
---|---|---|---|
9b1a1b24ed | |||
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/),
|
||||
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
|
||||
|
@ -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))
|
||||
|
Laden…
Verwijs in nieuw issue
Block a user