Returns the current auto-commit mode for this connection.
public isAutoCommit ( ) : boolean | ||
Résultat | boolean | True if auto-commit mode is currently enabled for this connection, false otherwise. |
/** * @group DBAL-81 */ public function testSetAutoCommit() { $this->_conn->setAutoCommit(false); $this->assertFalse($this->_conn->isAutoCommit()); $this->_conn->setAutoCommit(0); $this->assertFalse($this->_conn->isAutoCommit()); }