#28994 [Opn]: pg_field_prtlen takes int instead of string as third argument
| From: | nlopess@php.net | Date: | Fri, 02 Jul 2004 21:17:33 +0000 |
| Subject: | #28994 [Opn]: pg_field_prtlen takes int instead of string as third argument | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969361636@lists.php.net to get a copy of this message | ||
ID: 28994
Updated by: nlopess@php.net
Reported By: bas at vanklinkenbergsoftware dot nl
Status: Open
Bug Type: Documentation problem
Operating System: N/A
PHP Version: 4.3.7
New Comment:
What I can see in the sources is that the proto is:
int pg_field_prtlen(resource result, [int row,] mixed
field_name_or_number
Row is optional and the last parameter can be either a string or an
integer. If it's passed as string, it is recongnised as the field name,
otherwise as the field number.
I've never used PostgreSQL, so can you or somebody confirm if the
function is behaving as I've stated, please??
Thanks,
Nuno
Previous Comments:
------------------------------------------------------------------------
[2004-07-02 15:50:02] bas at vanklinkenbergsoftware dot nl
Description:
------------
In the online documentation for pg_field_prtlen, the function
arguments are described as follows:
int pg_field_prtlen (resource result, int row_number, string
field_name)
but actually it should be:
int pg_field_prtlen (resource result, int row_number, int
column_number)
(The third argument should be column number instead of field name).
When using pg_field_prtlen as stated in the online documentation, a
'Bad Column Offset' error is generated.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28994&edit=1