From 40e53396b9a8f01ddc36de30321015bed3b9cca7 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Sat, 10 Jun 2023 13:34:41 +0200 Subject: 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 --- drivers/adodb-sqlite3.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/adodb-sqlite3.inc.php') 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; -- cgit v1.3