From: ler at lerctr dot org Operating system: Web PHP version: 4.3.2 PHP Bug Type: Documentation problem Bug description: The pg_query doc page has an error
Description: ------------ The following paragraph from the pg_query php.net page is misleading: pg_query() returns a query result resource if query could be executed. It returns FALSE on failure or if connection is not a valid connection. Details about the error can be retrieved using the pg_last_error() function if connection is valid. pg_last_error() sends an SQL statement to the PostgreSQL database specified by the connection resource. The connection must be a valid connection that was returned by pg_connect() or pg_pconnect(). The return value of this function is an query result resource to be used to access the results from other PostgreSQL functions such as pg_fetch_array(). the 2nd occurance of pg_last_error() should be pg_query. Reproduce code: --------------- look at web page. -- Edit bug report at http://bugs.php.net/?id=24649&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24649&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24649&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24649&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24649&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24649&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24649&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24649&r=support Expected behavior: http://bugs.php.net/fix.php?id=24649&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24649&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24649&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24649&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24649&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24649&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24649&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24649&r=gnused -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
