Home
last modified time | relevance | path

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

/PHP-8.2/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_autocommit.phpt16 // autocommit should be on by default
21 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
27 printf("[003] Cannot turn off autocommit\n");
29 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
33 // PDO thinks autocommit is off, but its manually turned on...
34 if (!$db->query('SET autocommit = 1'))
41 if (!$db->query('SET autocommit = 0'))
45 printf("[008] Cannot turn on autocommit\n");
47 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
67 // autocommit is on, no rollback possible
[all …]
H A Dpdo_mysql_begintransaction.phpt109 if (!($stmt = $db->query('SELECT @@autocommit as auto_commit')))
114 … printf("[023] MySQL Server should indicate autocommit mode, expecting 1, got '%s', [%d] %s\n",
120 if (!($stmt = $db->query('SELECT @@autocommit as auto_commit')))
129 // Now we should be back to autocommit - we've issues a commit
131 … printf("[027] MySQL Server should indicate autocommit mode, expecting 1, got '%s', [%d] %s\n",
134 // Turn off autocommit using a server variable
135 $db->exec('SET @@autocommit = 0');
137 …printf("[028] I'm confused, how can autocommit be on? Didn't I say I want to manually control tran…
207 [028] I'm confused, how can autocommit be on? Didn't I say I want to manually control transactions?
H A Dpdo_mysql_commit.phpt40 … printf("[003] According to the manual we should be back to autocommit mode, got %s/%s\n",
/PHP-8.2/ext/mysqli/tests/
H A D074.phpt16 var_dump($mysqli->autocommit(false));
17 $result = $mysqli->query("SELECT @@autocommit");
20 var_dump($mysqli->autocommit(true));
21 $result = $mysqli->query("SELECT @@autocommit");
H A Dmysqli_autocommit_oo.phpt2 mysqli->autocommit()
25 if (!is_bool($tmp = $mysqli->autocommit(true)))
31 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit'))
37 printf("[005] Cannot turn off autocommit\n");
39 if (true !== ($tmp = $mysqli->autocommit( true)))
42 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit'))
47 printf("[008] Cannot turn on autocommit\n");
77 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit'))
83 printf("[018] Cannot turn on autocommit\n");
85 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
29 printf("[003] Cannot turn on autocommit mode, [%d] %s\n",
39 printf("[005] Cannot turn off autocommit mode, [%d] %s\n",
H A Dmysqli_savepoint.phpt35 … printf("[009] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
37 /* overrule autocommit */
H A D018.phpt19 if (!$stmt = mysqli_prepare($link, "SELECT @@autocommit"))
H A Dmysqli_begin_transaction.phpt30 printf("[010] Cannot turn on autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
32 /* overrule autocommit */
H A Dmysqli_commit_oo.phpt37 if (true !== ($tmp = $mysqli->autocommit(false))) {
38 … printf("[003] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_rollback.phpt23 … printf("[005] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_release_savepoint.phpt35 … printf("[009] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_commit.phpt23 … printf("[005] 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.phpt23 'autocommit' => true,
/PHP-8.2/ext/pdo_odbc/tests/
H A Dautocommit_change_mode.phpt115 SQLSTATE[HY000]: General error: Cannot change autocommit mode while a transaction is already open
119 SQLSTATE[HY000]: General error: Cannot change autocommit mode while a transaction is already open
127 SQLSTATE[HY000]: General error: Cannot change autocommit mode while a transaction is already open
131 SQLSTATE[HY000]: General error: Cannot change autocommit mode while a transaction is already open
/PHP-8.2/ext/pdo_oci/tests/
H A Dpdo_oci_attr_autocommit_1.phpt2 PDO_OCI: Attribute: Basic autocommit functionality
39 // 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.2/ext/mysqli/
H A Dmysqli.stub.php756 public function autocommit(bool $enable): bool {} function in mysqli
H A Dmysqli_arginfo.h941 ZEND_ME_MAPPING(autocommit, mysqli_autocommit, arginfo_class_mysqli_autocommit, ZEND_ACC_PUBLIC)
/PHP-8.2/
H A DNEWS994 . Fixed bug GH-12767 (Unable to turn on autocommit mode with setAttribute()).

Completed in 61 milliseconds