ID:               37516
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ce at netage dot bg
-Status:           Open
+Status:           Bogus
 Bug Type:         PostgreSQL related
 Operating System: linux
 PHP Version:      5.1.4
 New Comment:

Duplicate of bug #35675.


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

[2006-05-19 08:42:31] ce at netage dot bg

Description:
------------
when executing pg_execute it modifies the null values in 
the params array to an empty string

Reproduce code:
---------------
$conn = pg_connect('dbname=test');

$param_list = array(null, );

var_dump($param_list);

pg_prepare($conn, 'test', 'INSERT INTO nullproblem2 VALUES ($1)');
pg_execute($conn, 'test', $param_list);

var_dump($param_list);


Expected result:
----------------
array(1) {
  [0]=>
  NULL
}
array(1) {
  [0]=>
  NULL
}


Actual result:
--------------
array(1) {
  [0]=>
  NULL
}
array(1) {
  [0]=>
  string(0) ""
}



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


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

Reply via email to