php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #51186 Missing PDO::PARAM_NUMBER
Submitted: 2010-03-02 22:54 UTC Modified: 2017-03-01 22:38 UTC
Votes:7
Avg. Score:4.1 ± 1.1
Reproduced:6 of 6 (100.0%)
Same Version:2 (33.3%)
Same OS:3 (50.0%)
From: holger dot dippel at umassd dot edu Assigned:
Status: Duplicate Package: PDO related
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
 [2010-03-02 22:54 UTC] holger dot dippel at umassd dot edu
Description:
------------
The bind parameter type constants do not specify a test for a numeric/float value, that is something like:
PDO::PARAM_NUMBER
PDO::PARAM_FLOAT
possibly with allowing to specify the numbers of decimals.

Is there a chance that this could be added?

Thank you.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-02 18:11 UTC] dorin dot marcoci at gmail dot com
PDO::PARAM_FLOAT should be added, but kept separated by PARAM_INT.
PARAM_NUMBER is useless to define. INTs and FLOATs are different types.
 [2017-03-01 22:38 UTC] adambaratz@php.net
-Status: Open +Status: Duplicate
 [2017-03-01 22:38 UTC] adambaratz@php.net
See #43203.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu May 23 07:01:40 2019 UTC