diff options
| author | Mark Newnham <mark@newnhams.com> | 2022-11-19 11:43:31 -0700 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2022-11-23 12:32:57 +0100 |
| commit | 35ea1f54b29fc9475888ad159f8f8955adaeb291 (patch) | |
| tree | b62fd7c337264d80fceafe3490b245d304886643 /adodb.inc.php | |
| parent | bb87e83338c99038986878ac78f680becf9e8091 (diff) | |
| download | adodb-35ea1f54b29fc9475888ad159f8f8955adaeb291.tar.gz adodb-35ea1f54b29fc9475888ad159f8f8955adaeb291.tar.bz2 adodb-35ea1f54b29fc9475888ad159f8f8955adaeb291.zip | |
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
Diffstat (limited to 'adodb.inc.php')
| -rw-r--r-- | adodb.inc.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/adodb.inc.php b/adodb.inc.php index 100928a4..3d988a63 100644 --- a/adodb.inc.php +++ b/adodb.inc.php @@ -4273,9 +4273,7 @@ class ADORecordSet implements IteratorAggregate { 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 |
