Skip to content

Commit

Permalink
Fix PHP 8.1 PDO doubles
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsnop committed Feb 9, 2023
1 parent d173a6f commit 16f3612
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Ifsnop/Mysqldump/Mysqldump.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 16f3612

Please sign in to comment.