Home
last modified time | relevance | path

Searched refs:autocommit (Results 1 – 20 of 20) sorted by relevance

/PHP-8.0/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_autocommit.phpt15 // autocommit should be on by default
20 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
26 printf("[003] Cannot turn off autocommit\n");
28 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
32 // PDO thinks autocommit is off, but its manually turned on...
33 if (!$db->query('SET autocommit = 1'))
40 if (!$db->query('SET autocommit = 0'))
44 printf("[008] Cannot turn on autocommit\n");
46 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
66 // autocommit is on, no rollback possible
[all …]
H A Dpdo_mysql_begintransaction.phpt106 if (!($stmt = $db->query('SELECT @@autocommit as auto_commit')))
111 … printf("[023] MySQL Server should indicate autocommit mode, expecting 1, got '%s', [%d] %s\n",
117 if (!($stmt = $db->query('SELECT @@autocommit as auto_commit')))
126 // Now we should be back to autocommit - we've issues a commit
128 … printf("[027] MySQL Server should indicate autocommit mode, expecting 1, got '%s', [%d] %s\n",
131 // Turn off autocommit using a server variable
132 $db->exec('SET @@autocommit = 0');
134 …printf("[028] I'm confused, how can autocommit be on? Didn't I say I want to manually control tran…
204 [028] I'm confused, how can autocommit be on? Didn't I say I want to manually control transactions?
H A Dpdo_mysql_commit.phpt39 … printf("[003] According to the manual we should be back to autocommit mode, got %s/%s\n",
/PHP-8.0/ext/mysqli/tests/
H A D074.phpt15 var_dump($mysqli->autocommit(false));
16 $result = $mysqli->query("SELECT @@autocommit");
19 var_dump($mysqli->autocommit(true));
20 $result = $mysqli->query("SELECT @@autocommit");
H A Dmysqli_autocommit_oo.phpt2 mysqli->autocommit()
27 if (!is_bool($tmp = $mysqli->autocommit(true)))
33 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit'))
39 printf("[005] Cannot turn off autocommit\n");
41 if (true !== ($tmp = $mysqli->autocommit( true)))
44 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit'))
49 printf("[008] Cannot turn on autocommit\n");
79 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit'))
85 printf("[018] Cannot turn on autocommit\n");
87 if (true !== ($tmp = $mysqli->autocommit( false)))
[all …]
H A Dmysqli_autocommit.phpt32 if (!$res = mysqli_query($link, 'SELECT @@autocommit as auto_commit'))
38 printf("[008] Cannot turn off autocommit\n");
43 if (!$res = mysqli_query($link, 'SELECT @@autocommit as auto_commit'))
48 printf("[011] Cannot turn on autocommit\n");
78 if (!$res = mysqli_query($link, 'SELECT @@autocommit as auto_commit'))
83 printf("[021] Cannot turn on autocommit\n");
H A D015.phpt2 mysqli autocommit/commit/rollback with innodb
28 printf("[003] Cannot turn on autocommit mode, [%d] %s\n",
38 printf("[005] Cannot turn off autocommit mode, [%d] %s\n",
H A Dmysqli_savepoint.phpt36 … printf("[009] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
38 /* overrule autocommit */
H A D018.phpt18 if (!$stmt = mysqli_prepare($link, "SELECT @@autocommit"))
H A Dmysqli_begin_transaction.phpt29 printf("[010] Cannot turn on autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
31 /* overrule autocommit */
H A Dmysqli_commit_oo.phpt38 if (true !== ($tmp = $mysqli->autocommit(false))) {
39 … printf("[003] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_rollback.phpt24 … printf("[005] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_commit.phpt24 … printf("[005] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_release_savepoint.phpt38 … printf("[009] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
H A D014.phpt2 mysqli autocommit/commit/rollback
H A Dmysqli_class_mysqli_interface.phpt22 'autocommit' => true,
/PHP-8.0/ext/pdo_oci/tests/
H A Dpdo_oci_attr_autocommit_1.phpt2 PDO_OCI: Attribute: Basic autocommit functionality
37 // Use 2nd connection to check that autocommit does commit
H A Dpdo_oci_attr_autocommit_3.phpt2 PDO_OCI: Attribute: closing a connection in non-autocommit mode commits data
/PHP-8.0/ext/mysqli/
H A Dmysqli.stub.php24 public function autocommit(bool $enable) {} function in mysqli
H A Dmysqli_arginfo.h947 ZEND_ME_MAPPING(autocommit, mysqli_autocommit, arginfo_class_mysqli_autocommit, ZEND_ACC_PUBLIC)

Completed in 22 milliseconds