diff --git a/src/Database/SqlDatabase.php b/src/Database/SqlDatabase.php index 354d794..3ef4d5d 100644 --- a/src/Database/SqlDatabase.php +++ b/src/Database/SqlDatabase.php @@ -71,7 +71,7 @@ public function getRows($table, $columns, $where) public function updateByPrimary($table, $primaryKeyValue, $column, $value) { $where = $this->buildWhereForArray($primaryKeyValue); - $quotedValue = $value === null ? $value : $this->pdo->quote($value); + $quotedValue = $value === null ? 'null' : $this->pdo->quote($value); $sql = "UPDATE {$table}