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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 12:01:31 2024 UTC