Home
last modified time | relevance | path

Searched refs:auto_commit (Results 1 – 9 of 9) sorted by relevance

/php-src/ext/mysqli/tests/
H A Dmysqli_autocommit.phpt32 if (!$res = mysqli_query($link, 'SELECT @@autocommit as auto_commit'))
37 if ($tmp['auto_commit'])
43 if (!$res = mysqli_query($link, 'SELECT @@autocommit as auto_commit'))
47 if (!$tmp['auto_commit'])
78 if (!$res = mysqli_query($link, 'SELECT @@autocommit as auto_commit'))
82 if (!$tmp['auto_commit'])
H A Dmysqli_autocommit_oo.phpt28 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit'))
33 if ($tmp['auto_commit'])
39 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit'))
43 if (!$tmp['auto_commit'])
74 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit'))
79 if (!$tmp['auto_commit'])
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_begintransaction.phpt108 if (!($stmt = $db->query('SELECT @@autocommit as auto_commit')))
112 if ($tmp['auto_commit'] != 1)
114 $tmp['auto_commit'], $stmt->errorCode(), $stmt->errorInfo());
119 if (!($stmt = $db->query('SELECT @@autocommit as auto_commit')))
123 if ($tmp['auto_commit'] != 0)
125 $tmp['auto_commit'], $stmt->errorCode(), trim(implode(' ', $stmt->errorInfo())));
129 if ($tmp['auto_commit'] != 1)
131 $tmp['auto_commit'], $stmt->errorCode(), $stmt->errorInfo());
/php-src/ext/pdo_odbc/
H A Dodbc_driver.c269 if (dbh->auto_commit) { in odbc_handle_begin()
298 if (dbh->auto_commit) { in odbc_handle_commit()
323 if (dbh->auto_commit && H->dbc) { in odbc_handle_rollback()
355 if (dbh->auto_commit ^ bval) { in odbc_handle_set_attr()
356 dbh->auto_commit = bval; in odbc_handle_set_attr()
360 dbh->auto_commit ? (SQLPOINTER) SQL_AUTOCOMMIT_ON : (SQLPOINTER) SQL_AUTOCOMMIT_OFF, in odbc_handle_set_attr()
365 dbh->auto_commit ? "SQLSetConnectAttr AUTOCOMMIT = ON" : "SQLSetConnectAttr AUTOCOMMIT = OFF" in odbc_handle_set_attr()
414 ZVAL_BOOL(val, dbh->auto_commit); in odbc_handle_get_attr()
509 …(SQLPOINTER)(intptr_t)(dbh->auto_commit ? SQL_AUTOCOMMIT_ON : SQL_AUTOCOMMIT_OFF), SQL_IS_INTEGER); in pdo_odbc_handle_factory()
/php-src/ext/pdo_firebird/
H A Dfirebird_driver.c589 if (dbh->auto_commit) { in firebird_handle_closer()
774 if (dbh->auto_commit && !H->in_manually_txn) { in firebird_handle_doer()
893 if (dbh->auto_commit && H->tr) { in firebird_handle_manually_begin()
947 if (dbh->auto_commit) { in firebird_handle_manually_commit()
983 if (dbh->auto_commit) { in firebird_handle_manually_rollback()
1049 if (dbh->auto_commit ^ bval) { in pdo_firebird_set_attribute()
1071 dbh->auto_commit = bval; in pdo_firebird_set_attribute()
1170 if (dbh->auto_commit) { in pdo_firebird_set_attribute()
1215 ZVAL_BOOL(val,dbh->auto_commit); in pdo_firebird_get_attribute()
1412 if (dbh->auto_commit && !H->tr) { in pdo_firebird_handle_factory()
H A Dfirebird_statement.c256 …if (stmt->dbh->auto_commit && !S->H->in_manually_txn && !php_firebird_commit_transaction(stmt->dbh… in pdo_firebird_stmt_execute()
/php-src/ext/pdo_mysql/
H A Dmysql_driver.c410 PDO_DBG_INF_FMT("dbh->autocommit=%d", dbh->auto_commit); in mysql_handle_autocommit()
411 if (mysql_autocommit(((pdo_mysql_db_handle *)dbh->driver_data)->server, dbh->auto_commit)) { in mysql_handle_autocommit()
434 if (dbh->auto_commit ^ bval) { in pdo_mysql_set_attribute()
435 dbh->auto_commit = bval; in pdo_mysql_set_attribute()
546 ZVAL_BOOL(return_value, dbh->auto_commit);
975 if (!dbh->auto_commit) {
/php-src/ext/pdo/
H A Dphp_pdo_driver.h444 unsigned auto_commit:1; member
H A Dpdo_dbh.c466 dbh->auto_commit = pdo_attr_lval(options, PDO_ATTR_AUTOCOMMIT, 1); in php_pdo_internal_construct_driver()

Completed in 44 milliseconds