Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion system/Database/BaseConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ abstract class BaseConnection implements ConnectionInterface
public function __construct(array $params)
{
foreach ($params as $key => $value) {
$this->{$key} = $value;
if (property_exists($this, $key)) {
$this->{$key} = $value;
}
}

$queryClass = str_replace('Connection', 'Query', static::class);
Expand Down
5 changes: 5 additions & 0 deletions system/Database/Postgre/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ class Connection extends BaseConnection
*/
public $escapeChar = '"';

protected $connect_timeout;
protected $options;
protected $sslmode;
protected $service;

/**
* Connect to the database.
*
Expand Down
8 changes: 8 additions & 0 deletions system/Test/Mock/MockConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
class MockConnection extends BaseConnection
{
protected $returnValues = [];

/**
* Database schema for Postgre and SQLSRV
*
* @var string
*/
protected $schema;

public $database;
public $lastQuery;

Expand Down