Skip to content

Commit 16f3612

Browse files
committed
Fix PHP 8.1 PDO doubles
1 parent d173a6f commit 16f3612

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Ifsnop/Mysqldump/Mysqldump.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,8 @@ public function getColumnStmt($tableName)
13121312
continue;
13131313
} elseif ($colType['type'] == 'bit' && $this->dumpSettings['hex-blob']) {
13141314
$colStmt[] = "LPAD(HEX(`{$colName}`),2,'0') AS `{$colName}`";
1315+
} elseif ($colType['type'] == 'double' && PHP_VERSION_ID > 80100) {
1316+
$colStmt[] = sprintf("CONCAT(`%s`) AS `%s`", $colName, $colName);
13151317
} elseif ($colType['is_blob'] && $this->dumpSettings['hex-blob']) {
13161318
$colStmt[] = "HEX(`{$colName}`) AS `{$colName}`";
13171319
} else {

0 commit comments

Comments
 (0)