diff options
| author | Damien Regad <dregad@mantisbt.org> | 2023-06-10 13:34:41 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2023-06-10 13:34:41 +0200 |
| commit | 40e53396b9a8f01ddc36de30321015bed3b9cca7 (patch) | |
| tree | 542a8339951fd5747c89ea78f679811460b69c1b /drivers/adodb-sqlite.inc.php | |
| parent | d4f9f45737830b90ea69df9bbf9a340618dd7d22 (diff) | |
| download | adodb-40e53396b9a8f01ddc36de30321015bed3b9cca7.tar.gz adodb-40e53396b9a8f01ddc36de30321015bed3b9cca7.tar.bz2 adodb-40e53396b9a8f01ddc36de30321015bed3b9cca7.zip | |
Incorrect ADORecordset::$fetchMode initialization
Regression introduced by 5c9e24cf98409004da2a5e5bd80eeec82c5a3997
For some drivers using native fetch mode constants, the $fetchMode
property was not set properly as the switch statement assigning its
value was driven by the constructor's $mode parameter instead of the
parent constructor's $adodbFetchMode property.
Fixes #980
Diffstat (limited to 'drivers/adodb-sqlite.inc.php')
| -rw-r--r-- | drivers/adodb-sqlite.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/adodb-sqlite.inc.php b/drivers/adodb-sqlite.inc.php index d4cf19be..697d43a6 100644 --- a/drivers/adodb-sqlite.inc.php +++ b/drivers/adodb-sqlite.inc.php @@ -429,7 +429,7 @@ class ADORecordset_sqlite extends ADORecordSet { { parent::__construct($queryID, $mode); - switch ($mode) { + switch ($this->adodbFetchMode) { case ADODB_FETCH_NUM: $this->fetchMode = SQLITE_NUM; break; |
