From cba8867389c3a6728bbb33cf406db5b3534d6f82 Mon Sep 17 00:00:00 2001 From: Taras Machyshyn Date: Wed, 1 Aug 2018 18:49:40 +0300 Subject: [PATCH] Bug fixes for MySQL 8 --- .../Utils/Database/DBAL/Platforms/MySqlPlatform.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/application/Espo/Core/Utils/Database/DBAL/Platforms/MySqlPlatform.php b/application/Espo/Core/Utils/Database/DBAL/Platforms/MySqlPlatform.php index 6aa7d812f9..19dc3609ba 100644 --- a/application/Espo/Core/Utils/Database/DBAL/Platforms/MySqlPlatform.php +++ b/application/Espo/Core/Utils/Database/DBAL/Platforms/MySqlPlatform.php @@ -452,5 +452,17 @@ class MySqlPlatform extends \Doctrine\DBAL\Platforms\MySqlPlatform return 'MEDIUMTEXT'; } + + public function getColumnDeclarationListSQL(array $fields) + { + $queryFields = array(); + + foreach ($fields as $fieldName => $field) { + $quotedFieldName = $this->espoQuote($fieldName); + $queryFields[] = $this->getColumnDeclarationSQL($quotedFieldName, $field); + } + + return implode(', ', $queryFields); + } //end: ESPO } \ No newline at end of file