Skip to content

Commit

Permalink
unprepared return value bug fixed (laravel#19667)
Browse files Browse the repository at this point in the history
PDO::exec() may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE.
  • Loading branch information
procket-org authored and chrishardinge committed Jun 21, 2017
1 parent dcbb61a commit 338694f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ public function unprepared($query)
return true;
}

return (bool) $this->getPdo()->exec($query);
return $this->getPdo()->exec($query) === false ? false : true;
});
}

Expand Down

0 comments on commit 338694f

Please sign in to comment.