ID:          34549
 Updated by:  [EMAIL PROTECTED]
 Reported By: stochnagara at hotmail dot com
-Status:      Open
+Status:      Closed
 Bug Type:    Documentation problem
 PHP Version: Irrelevant
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.


Previous Comments:
------------------------------------------------------------------------

[2005-09-19 13:33:34] stochnagara at hotmail dot com

Description:
------------
There is a typo in function.pg-last-oid.php.

Example 1 is actually a pg_last_oid example but not pg_last_error()
example.


Expected result:
----------------
Example 1. pg_last_oid() example
<?php
  $pgsql_conn = pg_connect("dbname=mark host=localhost");
 
  $res1 = pg_query("CREATE TABLE test (a INTEGER) WITH OIDS");

  $res2 = pg_query("INSERT INTO test VALUES (1)");
 
  $oid = pg_last_oid($res2);
?> 

Actual result:
--------------
Example 1. pg_last_error() example
<?php
  $pgsql_conn = pg_connect("dbname=mark host=localhost");
 
  $res1 = pg_query("CREATE TABLE test (a INTEGER) WITH OIDS");

  $res2 = pg_query("INSERT INTO test VALUES (1)");
 
  $oid = pg_last_oid($res2);
?> 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34549&edit=1

Reply via email to