diff --git a/src/Database/Adapter/Postgres.php b/src/Database/Adapter/Postgres.php index 18f980046..812a1047c 100644 --- a/src/Database/Adapter/Postgres.php +++ b/src/Database/Adapter/Postgres.php @@ -390,7 +390,7 @@ public function updateAttribute(string $collection, string $id, string $type, in ->execute(); return $result; - } catch (Exception $e) { + } catch (PDOException $e) { $this->processException($e); return false; } diff --git a/src/Database/Database.php b/src/Database/Database.php index f52ba17c9..437f18881 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -1761,7 +1761,7 @@ public function updateAttribute(string $collection, string $id, string $type = n ->setAttribute('$id', $newKey ?? $id) ->setattribute('key', $newKey ?? $id) ->setAttribute('type', $type) - ->setAttribute('size', $size) + ->setAttribute('size', $size) ->setAttribute('signed', $signed) ->setAttribute('array', $array) ->setAttribute('format', $format)