which query is executed when ‘var_dump(pg_fetch_all(pg_query_params($db,’select $1=$2′,[FALSE,0])))’ is executed ;

While having reiterated some questions until now, I still fail to understand what exactly does ‘pg_query_params’ when called from PHP !!!

Having previously connected $db to a postgres database the command

var_dump(pg_fetch_all(pg_query_params($db,'select $1=$2',[FALSE,0])));

returns false as shown bellow:

array(1) {
  [0]=>
  array(1) {
    ["?column?"]=>
    string(1) "f"
  }
}

while the direct execution in pgadmin of

select false=0;

returns

ERROR:  operator does not exist: boolean = integer
LINE 1: select false=0 ;

so the question is where it is documented that the above results in false instead of in true ?

Similar questions for mysql_query_params and the corresponding dbo call.