Lines Matching refs:st
20 $st = $pdo->prepare('SELECT ?::char as i');
21 $st->bindValue(1, '1');
22 $st->execute();
23 var_dump($st->fetch()); // return false
26 $st = $pdo->prepare('SELECT (?)::char as i');
27 $st->bindValue(1, '1');
28 $st->execute();
29 var_dump($st->fetch()); // return array(1) { ["i"]=> string(1) "1" }
33 $st = $pdo->prepare("SELECT :int::int as i");
34 $st->execute(array(":int" => 123));
35 var_dump($st->fetch());
37 $st = $pdo->prepare("SELECT '''?'''::text as \":text\"");
38 $st->execute();
39 var_dump($st->fetch());