/php-src/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_attr_autocommit.phpt | 15 // 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); 67 // autocommit is on, no rollback possible [all …]
|
H A D | pdo_mysql_begintransaction.phpt | 108 if (!($stmt = $db->query('SELECT @@autocommit as auto_commit'))) 113 … printf("[023] MySQL Server should indicate autocommit mode, expecting 1, got '%s', [%d] %s\n", 119 if (!($stmt = $db->query('SELECT @@autocommit as auto_commit'))) 128 // Now we should be back to autocommit - we've issues a commit 130 … printf("[027] MySQL Server should indicate autocommit mode, expecting 1, got '%s', [%d] %s\n", 133 // Turn off autocommit using a server variable 134 $db->exec('SET @@autocommit = 0'); 136 …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 D | pdo_mysql_commit.phpt | 39 … printf("[003] According to the manual we should be back to autocommit mode, got %s/%s\n",
|
/php-src/ext/mysqli/tests/ |
H A D | 074.phpt | 16 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 D | mysqli_autocommit_oo.phpt | 2 mysqli->autocommit() 22 if (!is_bool($tmp = $mysqli->autocommit(true))) 28 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit')) 34 printf("[005] Cannot turn off autocommit\n"); 36 if (true !== ($tmp = $mysqli->autocommit( true))) 39 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit')) 44 printf("[008] Cannot turn on autocommit\n"); 74 if (!$res = $mysqli->query('SELECT @@autocommit as auto_commit')) 80 printf("[018] Cannot turn on autocommit\n"); 82 if (true !== ($tmp = $mysqli->autocommit( false))) [all …]
|
H A D | mysqli_autocommit.phpt | 32 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 D | mysqli_savepoint.phpt | 35 … printf("[009] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp); 37 /* overrule autocommit */
|
H A D | mysqli_commit_oo.phpt | 31 if (true !== ($tmp = $mysqli->autocommit(false))) { 32 … printf("[003] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_begin_transaction.phpt | 26 printf("[010] Cannot turn on autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp); 28 /* overrule autocommit */
|
H A D | mysqli_rollback.phpt | 23 … printf("[005] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_commit.phpt | 23 … printf("[005] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_release_savepoint.phpt | 35 … printf("[009] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_class_mysqli_interface.phpt | 23 'autocommit' => true,
|
/php-src/ext/pdo_odbc/tests/ |
H A D | autocommit_change_mode.phpt | 115 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-src/ext/pdo_firebird/tests/ |
H A D | autocommit_change_mode.phpt | 115 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-src/ext/odbc/tests/ |
H A D | odbc_setoption_001.phpt | 15 var_dump(odbc_setoption($conn, 1, 102 /* autocommit */, 0));
|
H A D | odbc_setoption_002.phpt | 15 var_dump(odbc_setoption($conn, 1, 102 /* autocommit */, 0));
|
/php-src/ext/mysqli/tests/bind_fetch/ |
H A D | system_variable.phpt | 18 $stmt = mysqli_prepare($link, "SELECT @@autocommit");
|
/php-src/ext/mysqli/tests/transactions/ |
H A D | 014.phpt | 2 mysqli autocommit/commit/rollback with innodb with CACHE
|
H A D | 015.phpt | 2 mysqli autocommit/commit/rollback with innodb with SQL_NO_CACHE
|
/php-src/ext/mysqli/ |
H A D | mysqli.stub.php | 735 public function autocommit(bool $enable): bool {} function in mysqli
|