Re: [PHP-DEV] RFC: mysqli::in_transaction

2021-04-27 Thread Sergei Morozov
Hi, There is the SQLGetConnectAttr method and the SQL_ATTR_AUTOCOMMIT attribute (part of the ISO 92 standard) which should allow detecting the transaction state at the driver level. This API used by the SQL Server extensions (to manage the transaction) and it also seems to be available for Oracle

Re: [PHP-DEV] RFC: mysqli::in_transaction

2021-04-26 Thread Gabriel O
What about OCI8 driver? That’s also included in core. Also a sidermark: SQLSrv and IBMDB2 are not part of core, but situation should be checked in those as well, since they are supported in DBA tooL Powered by Mailbutler

[PHP-DEV] RFC: mysqli::in_transaction

2021-04-26 Thread Grégoire PARIS
Hi, Grégoire Paris here! I'm a maintainer on Doctrine projects and today, I'd like to talk to you about something we would like to propose. We have found that PDO has a method called PDO::inTransaction() that we would like to mimic in the API of doctrine/dbal, a database abstraction layer