dibi icon indicating copy to clipboard operation
dibi copied to clipboard

PDO: Support for PDO::ERRMODE_EXCEPTION

Open dakujem opened this issue 4 years ago • 3 comments
trafficstars

  • new feature, no existing code will break (full bc)

I added support for PDO in PDO::ERRMODE_EXCEPTION error mode using a single try-catch block.

👉 Since in PHP 8 PDO::ERRMODE_EXCEPTION is the default, this is also useful for your master branch.

I have a use case where I need to share PDO resource and it's set with exception errmode, this solves the issue for the 4.2 branch.

dakujem avatar Jun 22 '21 21:06 dakujem

There is a older attempt to implement it #293

dg avatar Jun 30 '21 10:06 dg

That PR solves a different issue.
And since the PR(s) mentioned are over 3 years old, I'm not expecting them merged any time soon.

This PR does not introduce BC break in any way, it only adds the option to use the exception error mode without any change in behaviour of dibi.

dakujem avatar Jul 01 '21 08:07 dakujem

bump.

dakujem avatar Aug 02 '23 12:08 dakujem