| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| // commit db transaction | ||
| $pdo->commit(); | ||
|
|
||
| } catch (PDOException $e) { |
There was a problem hiding this comment.
should we catch any Exception here instead?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The main problem with wrapping the steps in a transaction is that any hook scripts will be unable to query the database to see the same value(s) (as they won't have been committed yet).