From b6aacc9ea4db614502e2ddae6a81667f251ba62a Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 2 Jan 2020 02:34:44 +0000 Subject: [PATCH] dev/core#1144 (NFC) Handle fact that MySQL 8 always returns the column name as it is in the DB not as it is in the query --- Civi/Test/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Test/Schema.php b/Civi/Test/Schema.php index b5a9aa525c..40da4389a9 100644 --- a/Civi/Test/Schema.php +++ b/Civi/Test/Schema.php @@ -27,7 +27,7 @@ class Schema { $tables = $pdo->query($query); $result = []; foreach ($tables as $table) { - $result[] = $table['table_name']; + $result[] = isset($table['TABLE_NAME']) ? $table['TABLE_NAME'] : $table['table_name']; } return $result; } -- 2.25.1