ID: 36750 Updated by: [EMAIL PROTECTED] Reported By: fabrizio dot balliano at crealabs dot it -Status: Assigned +Status: Closed Bug Type: Feature/Change Request Operating System: irrelevant PHP Version: 4.4.2 Assigned To: edink New Comment:
pg_field_table() has been added. It will appear in php-6.0.0 and perhaps 5.1.4. Previous Comments: ------------------------------------------------------------------------ [2006-03-16 12:36:35] [EMAIL PROTECTED] OK. I'll look into it. ------------------------------------------------------------------------ [2006-03-16 09:30:17] [EMAIL PROTECTED] 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-15 23:53:16] [EMAIL PROTECTED] The PostgreSQL API does not support this functionality. ------------------------------------------------------------------------ [2006-03-15 21:41:16] 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) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36750&edit=1