On 3 October 2016 19:11:52 BST, Adam Baratz <adambar...@php.net> wrote:
>Test script:
>---------------
>$db = new PDO(...);
>
>$stmt = $db->prepare("SELECT :null");
>$stmt->bindValue(':null', null, PDO::PARAM_NULL);
>$stmt->execute();
>var_dump($stmt->fetchAll()); // NULL

Well, I'm pretty sure Postgres won't be affected either way, because its type 
system is such that you can't prepare a query where the types of parameters 
can't be decided yet. A query like this simply gives an error.

Regards,

-- 
Rowan Collins
[IMSoP]

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to