Lines Matching refs:query
22 $query = $db->prepare('SELECT :foo IS FALSE as val_is_false');
23 $query->bindValue(':foo', $value, PDO::PARAM_BOOL);
24 $query->execute();
25 $errors[] = $query->errorInfo();
28 $query->bindValue(':foo', 0, PDO::PARAM_BOOL);
29 $query->execute();
30 $errors[] = $query->errorInfo();
34 $query->bindParam(':foo', $value, PDO::PARAM_BOOL);
36 $query->execute();
37 $errors[] = $query->errorInfo();
42 $query->bindParam(':foo', $value, PDO::PARAM_BOOL);
43 $query->execute();
44 $errors[] = $query->errorInfo();
45 var_dump($query->fetchColumn());
48 $query->bindParam(':foo', $value, PDO::PARAM_BOOL);
49 $query->execute();
50 $errors[] = $query->errorInfo();
51 var_dump($query->fetchColumn());