From 16f36121df7e5484d0847cbf7f603b00a3747fca Mon Sep 17 00:00:00 2001 From: Diego Torres Date: Thu, 9 Feb 2023 02:00:29 +0000 Subject: [PATCH] Fix PHP 8.1 PDO doubles --- src/Ifsnop/Mysqldump/Mysqldump.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Ifsnop/Mysqldump/Mysqldump.php b/src/Ifsnop/Mysqldump/Mysqldump.php index 44997d91..ab261738 100644 --- a/src/Ifsnop/Mysqldump/Mysqldump.php +++ b/src/Ifsnop/Mysqldump/Mysqldump.php @@ -1312,6 +1312,8 @@ public function getColumnStmt($tableName) continue; } elseif ($colType['type'] == 'bit' && $this->dumpSettings['hex-blob']) { $colStmt[] = "LPAD(HEX(`{$colName}`),2,'0') AS `{$colName}`"; + } elseif ($colType['type'] == 'double' && PHP_VERSION_ID > 80100) { + $colStmt[] = sprintf("CONCAT(`%s`) AS `%s`", $colName, $colName); } elseif ($colType['is_blob'] && $this->dumpSettings['hex-blob']) { $colStmt[] = "HEX(`{$colName}`) AS `{$colName}`"; } else {