php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63046 pg_query_params() NULLs aren't converted (contrary to the docs)
Submitted: 2012-09-08 20:25 UTC Modified: 2016-12-30 12:20 UTC
From: php at richardneill dot org Assigned:
Status: Open Package: PostgreSQL related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-09-08 20:25 UTC] php at richardneill dot org
Description:
------------
The documentation for pg_query_params() states that parameters which are 
NULL (PHP-NULL) get passed to the database as NULL (SQL-NULL). That's not actually what happens.

PHP actually converts NULL to the empty string. See bug: 62998

(Imho, the current documented behaviour explains what PHP should actually do; nevertheless, the docs should reflect reality, rather than the spec).


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 12:20 UTC] cmb@php.net
-Package: Documentation problem +Package: PostgreSQL related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 00:01:33 2024 UTC