Lines Matching refs:query
21 $query = $db->prepare('SELECT :foo IS FALSE as val_is_false');
22 $query->bindValue(':foo', $value, PDO::PARAM_BOOL);
23 $query->execute();
24 $errors[] = $query->errorInfo();
27 $query->bindValue(':foo', 0, PDO::PARAM_BOOL);
28 $query->execute();
29 $errors[] = $query->errorInfo();
33 $query->bindParam(':foo', $value, PDO::PARAM_BOOL);
35 $query->execute();
36 $errors[] = $query->errorInfo();
41 $query->bindParam(':foo', $value, PDO::PARAM_BOOL);
42 $query->execute();
43 $errors[] = $query->errorInfo();
44 var_dump($query->fetchColumn());
47 $query->bindParam(':foo', $value, PDO::PARAM_BOOL);
48 $query->execute();
49 $errors[] = $query->errorInfo();
50 var_dump($query->fetchColumn());