We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 787c8fa commit 1985e0eCopy full SHA for 1985e0e
src/Queries/Base.php
@@ -40,7 +40,7 @@ abstract class Base implements IteratorAggregate
40
protected $message = '';
41
42
/** @var int */
43
- protected $currentFetchMode = PDO::FETCH_DEFAULT;
+ protected $currentFetchMode;
44
45
/**
46
* BaseQuery constructor.
@@ -50,6 +50,7 @@ abstract class Base implements IteratorAggregate
50
*/
51
protected function __construct(Query $fluent, $clauses)
52
{
53
+ $this->currentFetchMode = defined('PDO::FETCH_DEFAULT') ? PDO::FETCH_DEFAULT : PDO::FETCH_BOTH;
54
$this->fluent = $fluent;
55
$this->clauses = $clauses;
56
$this->result = null;
0 commit comments