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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at richardneill dot org
New email:
PHP Version: OS:

 

 [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: Sat Nov 09 17:01:28 2024 UTC