From 3fac259b9b56bbfce930bd6b5108bafb8ab603b4 Mon Sep 17 00:00:00 2001 From: vjccruz Date: Thu, 31 Mar 2022 23:57:08 +0100 Subject: [PATCH] added support to MYSQL 8 MYSQL 8 has UPPERCASE columns in information_schema --- src/Query/Builder.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Query/Builder.php b/src/Query/Builder.php index be27f60..4122918 100644 --- a/src/Query/Builder.php +++ b/src/Query/Builder.php @@ -1264,9 +1264,11 @@ public function lists($column, $key = null) // then we can associate those values with the column if it was specified // otherwise we can just give these values back without a specific key. $results = $this->get($columns); + + $results = array_change_key_case($results, CASE_UPPER); $values = array_map(function ($row) use ($columns) { - return $row[$columns[0]]; + return $row[strtoupper($columns[0])]; }, $results); // If a key was specified and we have results, we will go ahead and combine