Skip to content

Commit

Permalink
[FIX] fix PDO type for field of be_users (bytea)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardberger authored and tehplague committed Aug 11, 2022
1 parent d4d4b2e commit e1eb3d2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Classes/Services/OAuth2LoginService.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,13 @@ private function findOrCreateUserByResourceOwner(ResourceOwnerInterface $user):
);

foreach ($record as $key => $value) {
$qb->set($key, $value);
$type = \PDO::PARAM_STR;

if ($key === 'uc') {
$type = \PDO::PARAM_LOB;
}

$qb->set($key, $value, true, $type);
}

$qb->execute();
Expand Down

0 comments on commit e1eb3d2

Please sign in to comment.