ID:               36606
 User updated by:  everton at faccat dot br
 Reported By:      everton at faccat dot br
 Status:           Open
-Bug Type:         Feature/Change Request
+Bug Type:         PostgreSQL related
 Operating System: Linux Slackware 9.1
 PHP Version:      5.1.2
 New Comment:

category updated


Previous Comments:
------------------------------------------------------------------------

[2006-03-03 15:44:59] everton at faccat dot br

Description:
------------
Variables with null values change to an empty string after
pg_query_params. This is not reported in pg_query_params manual.

Reproduce code:
---------------
$a = pg_connect("dbname=saga3");
$b = null;
var_dump($b); 
pg_query_params($a, "SELECT * FROM pais WHERE idpais = $1",
array($b));
var_dump($b); 
die;


Expected result:
----------------
NULL
NULL

Actual result:
--------------
NULL
string(0) ""


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36606&edit=1

Reply via email to