Skip to content

Commit

Permalink
ADODB_FETCH_DEFAULT should be treated as ASSOC, see #886
Browse files Browse the repository at this point in the history
  • Loading branch information
mnewnham committed Nov 19, 2022
1 parent 11d361b commit afb73d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions adodb.inc.php
Expand Up @@ -4310,8 +4310,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
Expand Down

0 comments on commit afb73d4

Please sign in to comment.