Lines Matching refs:query
19 $query = $db->prepare('SELECT :foo IS FALSE as val_is_false');
20 $query->bindValue(':foo', $value, PDO::PARAM_BOOL);
21 $query->execute();
22 $errors[] = $query->errorInfo();
25 $query->bindValue(':foo', 0, PDO::PARAM_BOOL);
26 $query->execute();
27 $errors[] = $query->errorInfo();
31 $query->bindParam(':foo', $value, PDO::PARAM_BOOL);
33 $query->execute();
34 $errors[] = $query->errorInfo();
39 $query->bindParam(':foo', $value, PDO::PARAM_BOOL);
40 $query->execute();
41 $errors[] = $query->errorInfo();
42 var_dump($query->fetchColumn());
45 $query->bindParam(':foo', $value, PDO::PARAM_BOOL);
46 $query->execute();
47 $errors[] = $query->errorInfo();
48 var_dump($query->fetchColumn());