Skip to content

Commit 29b23bb

Browse files
reverted pdo type
1 parent da8accb commit 29b23bb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Database/Adapter/MariaDB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,7 @@ protected function getSQLType(string $type, int $size, bool $signed = true, bool
19701970
protected function getPDOType(mixed $value): int
19711971
{
19721972
return match (gettype($value)) {
1973-
'string' => PDO::PARAM_STR,
1973+
'string','double' => PDO::PARAM_STR,
19741974
'integer', 'boolean' => PDO::PARAM_INT,
19751975
'NULL' => PDO::PARAM_NULL,
19761976
default => throw new DatabaseException('Unknown PDO Type for ' . \gettype($value)),

src/Database/Adapter/Postgres.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ protected function getSQLSchema(): string
20912091
protected function getPDOType(mixed $value): int
20922092
{
20932093
return match (\gettype($value)) {
2094-
'string' => PDO::PARAM_STR,
2094+
'string', 'double' => PDO::PARAM_STR,
20952095
'boolean' => PDO::PARAM_BOOL,
20962096
'integer' => PDO::PARAM_INT,
20972097
'NULL' => PDO::PARAM_NULL,

0 commit comments

Comments
 (0)