Lines Matching refs:PDO
2 PDO::ATTR_AUTOCOMMIT
16 if (1 !== ($tmp = $db->getAttribute(PDO::ATTR_AUTOCOMMIT)))
20 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
25 if (!$db->setAttribute(PDO::ATTR_AUTOCOMMIT, 0))
28 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
32 // PDO thinks autocommit is off, but its manually turned on...
36 if (0 !== ($tmp = $db->getAttribute(PDO::ATTR_AUTOCOMMIT)))
43 if (!$db->setAttribute(PDO::ATTR_AUTOCOMMIT, 1))
46 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC);
50 if (1 !== ($tmp = $db->getAttribute(PDO::ATTR_AUTOCOMMIT)))
57 $row = $db->query('SELECT COUNT(*) AS _num FROM test')->fetch(PDO::FETCH_ASSOC);
62 $row = $db->query('SELECT COUNT(*) AS _num FROM test')->fetch(PDO::FETCH_ASSOC);
68 $row = $db->query('SELECT COUNT(*) AS _num FROM test')->fetch(PDO::FETCH_ASSOC);
72 if (!$db->setAttribute(PDO::ATTR_AUTOCOMMIT, 0))
77 $row = $db->query('SELECT COUNT(*) AS _num FROM test')->fetch(PDO::FETCH_ASSOC);
84 $row = $db->query('SELECT COUNT(*) AS _num FROM test')->fetch(PDO::FETCH_ASSOC);