From 35ea1f54b29fc9475888ad159f8f8955adaeb291 Mon Sep 17 00:00:00 2001 From: Mark Newnham Date: Sat, 19 Nov 2022 11:43:31 -0700 Subject: [PATCH] ADODB_FETCH_DEFAULT should be treated as ASSOC Ensures that the recordset is returned in the default provided by the PHP driver as per the documentation. Fixes #886 --- adodb.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/adodb.inc.php b/adodb.inc.php index 100928a46..3d988a63a 100644 --- a/adodb.inc.php +++ b/adodb.inc.php @@ -4273,9 +4273,7 @@ function getAssoc($force_array = false, $first2cols = false) switch ($showArrayMethod) { case 0: - if ($fetchMode == ADODB_FETCH_ASSOC - || $fetchMode == ADODB_FETCH_BOTH) - { + if ($fetchMode != ADODB_FETCH_NUM) { /* * The driver should have already handled the key * casing, but in case it did not. We will check and force