php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #36750 pg_field_table does not exists
Submitted: 2006-03-15 21:41 UTC Modified: 2006-03-16 16:19 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: fabrizio dot balliano at crealabs dot it Assigned: edink (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.4.2 OS: irrelevant
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fabrizio dot balliano at crealabs dot it
New email:
PHP Version: OS:

 

 [2006-03-15 21:41 UTC] fabrizio dot balliano at crealabs dot it
Description:
------------
function pg_field_table is not implemented but I think it's important, it's present for other db, such as mysql (http://php.net/mysql_field_table)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-15 23:53 UTC] edink@php.net
The PostgreSQL API does not support this functionality.
 [2006-03-16 09:30 UTC] lsmith@php.net
Looking at the libpg docs:
http://www.postgresql.org/docs/8.1/interactive/libpq-exec.html#LIBPQ-EXEC-SELECT-INFO

PQftable

Returns the OID of the table from which the given column was fetched. Column numbers start at 0.

Oid PQftable(const PGresult *res, int column_number);

InvalidOid is returned if the column number is out of range, or if the specified column is not a simple reference to a table column, or when using pre-3.0 protocol. You can query the system table pg_class to determine exactly which table is referenced.

The type Oid and the constant InvalidOid will be defined when you include the libpq header file. They will both be some integer type.
 [2006-03-16 12:36 UTC] edink@php.net
OK. I'll look into it.
 [2006-03-16 15:59 UTC] edink@php.net
pg_field_table() has been added. It will appear in php-6.0.0 and perhaps 5.1.4.
 [2006-03-16 16:01 UTC] fabrizio dot balliano at crealabs dot it
thank you very much,
no hope for 4.4.x?
 [2006-03-16 16:19 UTC] derick@php.net
No, we won't add new features to PHP 4.4
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 19:00:03 2025 UTC