Commit 8d252508 authored by Son Nguyen's avatar Son Nguyen Committed by Cecilia Vela Gurovic
Browse files

Fix a bug when determine if an array is associative

Bug 1672867

Use the original code from ADODB 5.20.5

(Cherry-picked from 60631719)

behatnotneeded

Change-Id: I9e4f7cca8debe2e79057f1c96b6dfd072a437317
parent 43b971a0
......@@ -3480,7 +3480,7 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
}
// Determine whether the array is associative or 0-based numeric
$numIndex = array_keys($this->fields) == range(0, count($this->fields) - 1);
$numIndex = is_array($this->fields) && array_key_exists(0, $this->fields);
$results = array();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment