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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 12:20 UTC] cmb@php.net
-Package: Documentation problem +Package: PostgreSQL related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 07:01:26 2019 UTC