pg_last_oid
(PHP 4 >= 4.2.0)
pg_last_oid -- Returns the last object's oid
Description
int pg_last_oid ( resource result)
pg_last_oid() is used to retrieve the oid assigned to an
inserted tuple (record) if the result resource is used from
the last command sent via pg_query() and was an SQL INSERT.
Returns a positive integer if there was a valid oid. It
returns FALSE if an error occurs or the last command sent
via pg_query() was not an INSERT or INSERT is failed.
OID field became an optional field from PostgreSQL 7.2.
When OID field is not defined in a table, programmer must
use pg_result_status() to check if record is is inserted
successfully or not.
Note: This function used to be called pg_getlastoid().
See also pg_query() and pg_result_status()
pg_lo_close
(PHP 4 >= 4.2.0)
pg_lo_close -- Close a large object
Description
bool pg_lo_close ( resource large_object)
pg_lo_close() closes a Large Object. large_object is a resource
for the large object from pg_lo_open().
To use the large object (lo) interface, it is necessary
to enclose it within a transaction block.
Note: This function used to be called pg_loclose().
See also pg_lo_open(), pg_lo_create() and pg_lo_import().
|