#36606 [Opn]: Variables with null values change to empty string after pg_query_params
| From: | everton at faccat dot br | Date: | Fri, 03 Mar 2006 20:43:09 +0000 |
| Subject: | #36606 [Opn]: Variables with null values change to empty string after pg_query_params | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93898@lists.php.net to get a copy of this message | ||
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