|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: php at richardneill dot org
New email:
PHP Version: OS:


 [2012-09-08 20:25 UTC] php at richardneill dot org
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).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 12:20 UTC]
-Package: Documentation problem +Package: PostgreSQL related
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 08:01:32 2024 UTC