Lines Matching refs:autocommit
15 // autocommit should be on by default
20 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
22 … printf("[002] Server autocommit mode should be on, got '%s'\n", var_export($row['_autocommit']));
26 printf("[003] Cannot turn off autocommit\n");
28 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
30 … printf("[004] Server autocommit mode should be off, got '%s'\n", var_export($row['_autocommit']));
32 // PDO thinks autocommit is off, but its manually turned on...
33 if (!$db->query('SET autocommit = 1'))
34 … printf("[005] Cannot turn on server autocommit mode, %s\n", var_export($db->errorInfo(), true));
40 if (!$db->query('SET autocommit = 0'))
41 … printf("[007] Cannot turn off server autocommit mode, %s\n", var_export($db->errorInfo(), true));
44 printf("[008] Cannot turn on autocommit\n");
46 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
48 … printf("[009] Server autocommit mode should be on, got '%s'\n", var_export($row['_autocommit']));
66 // autocommit is on, no rollback possible
73 printf("[013] Cannot turn off autocommit\n");