Lines Matching refs:autocommit
16 // autocommit should be on by default
21 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
23 … printf("[002] Server autocommit mode should be on, got '%s'\n", var_export($row['_autocommit']));
27 printf("[003] Cannot turn off autocommit\n");
29 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
31 … printf("[004] Server autocommit mode should be off, got '%s'\n", var_export($row['_autocommit']));
33 // PDO thinks autocommit is off, but its manually turned on...
34 if (!$db->query('SET autocommit = 1'))
35 … printf("[005] Cannot turn on server autocommit mode, %s\n", var_export($db->errorInfo(), true));
41 if (!$db->query('SET autocommit = 0'))
42 … printf("[007] Cannot turn off server autocommit mode, %s\n", var_export($db->errorInfo(), true));
45 printf("[008] Cannot turn on autocommit\n");
47 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
49 … printf("[009] Server autocommit mode should be on, got '%s'\n", var_export($row['_autocommit']));
67 // autocommit is on, no rollback possible
74 printf("[013] Cannot turn off autocommit\n");