summaryrefslogtreecommitdiff
path: root/drivers/adodb-sqlite3.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2023-06-10 13:34:41 +0200
committerDamien Regad <dregad@mantisbt.org>2023-06-10 13:34:41 +0200
commit40e53396b9a8f01ddc36de30321015bed3b9cca7 (patch)
tree542a8339951fd5747c89ea78f679811460b69c1b /drivers/adodb-sqlite3.inc.php
parentd4f9f45737830b90ea69df9bbf9a340618dd7d22 (diff)
downloadadodb-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-sqlite3.inc.php')
-rw-r--r--drivers/adodb-sqlite3.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/adodb-sqlite3.inc.php b/drivers/adodb-sqlite3.inc.php
index 822a649d..8141af6e 100644
--- a/drivers/adodb-sqlite3.inc.php
+++ b/drivers/adodb-sqlite3.inc.php
@@ -722,7 +722,7 @@ class ADORecordset_sqlite3 extends ADORecordSet {
function __construct($queryID, $mode=false)
{
parent::__construct($queryID, $mode);
- switch($mode) {
+ switch($this->adodbFetchMode) {
case ADODB_FETCH_NUM:
$this->fetchMode = SQLITE3_NUM;
break;