[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-result-error.xml

2006-07-04 Thread Nuno Lopes
nlopess Tue Jul  4 11:13:25 2006 UTC

  Modified files:  
/phpdoc/en/reference/pgsql/functionspg-result-error.xml 
  Log:
  fix return value, per user note
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pgsql/functions/pg-result-error.xml?r1=1.9r2=1.10diff_format=u
Index: phpdoc/en/reference/pgsql/functions/pg-result-error.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.9 
phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.10
--- phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.9 Wed Nov 30 
04:06:54 2005
+++ phpdoc/en/reference/pgsql/functions/pg-result-error.xml Tue Jul  4 
11:13:25 2006
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.9 $ --
+!-- $Revision: 1.10 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --
 refentry id='function.pg-result-error'
  refnamediv
@@ -53,7 +53,8 @@
  refsect1 role=returnvalues
   reftitle.returnvalues;
   para
-   return.success;
+   Returns a typestring/type if there is an error associated with the
+   parameterresult/parameter parameter, false; otherwise.
   /para
  /refsect1
  


Re: [PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-result-error.xml

2005-11-30 Thread Nuno Lopes
Thanks for adding a new example. I didn't do that, because I've never used 
this extension.

Nuno


- Original Message - 

Don't worry - I'll commit a corrected example myself.

Christopher Kings-Lynne wrote:

Wha?

Please _fix_ the article - don't just remove parameter listings and 
example code.


Chris


Nuno Lopes wrote:


nlopessTue Nov 29 14:25:13 2005 EDT

  Modified files:  /phpdoc/en/reference/pgsql/functions 
pg-result-error.xml   Log:

  fix copy-past error from the pg_result_seek() page (user note)

http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-result-error.xml?r1=1.7r2=1.8ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-result-error.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.7 
phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.8
--- phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.7Mon 
Apr 25 04:59:03 2005
+++ phpdoc/en/reference/pgsql/functions/pg-result-error.xmlTue Nov 
29 14:25:10 2005

@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.7 $ --
+!-- $Revision: 1.8 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 
1.82 --

 refentry id='function.pg-result-error'
  refnamediv
@@ -46,15 +46,6 @@
   /para
  /listitem
 /varlistentry
-varlistentry
- termparameteroffset/parameter/term
- listitem
-  para
-   Row to move the internal offset to in the 
parameterresult/parameter resource.

-   Rows are numbered starting from zero.
-  /para
- /listitem
-/varlistentry
/variablelist
   /para
  /refsect1
@@ -66,34 +57,6 @@
   /para
  /refsect1
  - refsect1 role=examples
-  reftitle.examples;
-  para
-   example
-titlefunctionpg_result_seek/function example/title
-programlisting role=php
-![CDATA[
-?php
-
-// Connect to the database
-$conn = pg_pconnect(dbname=publisher);
-
-// Execute a query
-$result = pg_query($conn, SELECT author, email FROM authors);
-
-// Seek to the 3rd row (assuming there are 3 rows)
-pg_result_seek($result, 2);
-
-// Fetch the 3rd row
-$row = pg_fetch_row($result);
- -?
-]]
-/programlisting
-   /example
-  /para
- /refsect1
-   refsect1 role=seealso
   reftitle.seealso;
   para 


[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-result-error.xml

2005-11-29 Thread Nuno Lopes
nlopess Tue Nov 29 14:25:13 2005 EDT

  Modified files:  
/phpdoc/en/reference/pgsql/functionspg-result-error.xml 
  Log:
  fix copy-past error from the pg_result_seek() page (user note)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-result-error.xml?r1=1.7r2=1.8ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-result-error.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.7 
phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.8
--- phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.7 Mon Apr 25 
04:59:03 2005
+++ phpdoc/en/reference/pgsql/functions/pg-result-error.xml Tue Nov 29 
14:25:10 2005
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.7 $ --
+!-- $Revision: 1.8 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --
 refentry id='function.pg-result-error'
  refnamediv
@@ -46,15 +46,6 @@
   /para
  /listitem
 /varlistentry
-varlistentry
- termparameteroffset/parameter/term
- listitem
-  para
-   Row to move the internal offset to in the parameterresult/parameter 
resource.
-   Rows are numbered starting from zero.
-  /para
- /listitem
-/varlistentry
/variablelist
   /para
  /refsect1
@@ -66,34 +57,6 @@
   /para
  /refsect1
  
- refsect1 role=examples
-  reftitle.examples;
-  para
-   example
-titlefunctionpg_result_seek/function example/title
-programlisting role=php
-![CDATA[
-?php
-
-// Connect to the database
-$conn = pg_pconnect(dbname=publisher);
-
-// Execute a query
-$result = pg_query($conn, SELECT author, email FROM authors);
-
-// Seek to the 3rd row (assuming there are 3 rows)
-pg_result_seek($result, 2);
-
-// Fetch the 3rd row
-$row = pg_fetch_row($result);
- 
-?
-]]
-/programlisting
-   /example
-  /para
- /refsect1
- 
  refsect1 role=seealso
   reftitle.seealso;
   para


Re: [PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-result-error.xml

2005-11-29 Thread Christopher Kings-Lynne

Wha?

Please _fix_ the article - don't just remove parameter listings and 
example code.


Chris


Nuno Lopes wrote:

nlopess Tue Nov 29 14:25:13 2005 EDT

  Modified files:  
/phpdoc/en/reference/pgsql/functions	pg-result-error.xml 
  Log:

  fix copy-past error from the pg_result_seek() page (user note)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-result-error.xml?r1=1.7r2=1.8ty=u

Index: phpdoc/en/reference/pgsql/functions/pg-result-error.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.7 
phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.8
--- phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.7 Mon Apr 25 
04:59:03 2005
+++ phpdoc/en/reference/pgsql/functions/pg-result-error.xml Tue Nov 29 
14:25:10 2005
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.7 $ --
+!-- $Revision: 1.8 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --
 refentry id='function.pg-result-error'
  refnamediv
@@ -46,15 +46,6 @@
   /para
  /listitem
 /varlistentry
-varlistentry
- termparameteroffset/parameter/term
- listitem
-  para
-   Row to move the internal offset to in the parameterresult/parameter 
resource.
-   Rows are numbered starting from zero.
-  /para
- /listitem
-/varlistentry
/variablelist
   /para
  /refsect1
@@ -66,34 +57,6 @@
   /para
  /refsect1
  
- refsect1 role=examples

-  reftitle.examples;
-  para
-   example
-titlefunctionpg_result_seek/function example/title
-programlisting role=php
-![CDATA[
-?php
-
-// Connect to the database
-$conn = pg_pconnect(dbname=publisher);
-
-// Execute a query
-$result = pg_query($conn, SELECT author, email FROM authors);
-
-// Seek to the 3rd row (assuming there are 3 rows)
-pg_result_seek($result, 2);
-
-// Fetch the 3rd row
-$row = pg_fetch_row($result);
- 
-?

-]]
-/programlisting
-   /example
-  /para
- /refsect1
- 
  refsect1 role=seealso

   reftitle.seealso;
   para


Re: [PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-result-error.xml

2005-11-29 Thread Christopher Kings-Lynne

Don't worry - I'll commit a corrected example myself.

Christopher Kings-Lynne wrote:

Wha?

Please _fix_ the article - don't just remove parameter listings and 
example code.


Chris


Nuno Lopes wrote:


nlopessTue Nov 29 14:25:13 2005 EDT

  Modified files:  
/phpdoc/en/reference/pgsql/functionspg-result-error.xml   Log:

  fix copy-past error from the pg_result_seek() page (user note)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-result-error.xml?r1=1.7r2=1.8ty=u 


Index: phpdoc/en/reference/pgsql/functions/pg-result-error.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.7 
phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.8
--- phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.7Mon 
Apr 25 04:59:03 2005
+++ phpdoc/en/reference/pgsql/functions/pg-result-error.xmlTue Nov 
29 14:25:10 2005

@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.7 $ --
+!-- $Revision: 1.8 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --
 refentry id='function.pg-result-error'
  refnamediv
@@ -46,15 +46,6 @@
   /para
  /listitem
 /varlistentry
-varlistentry
- termparameteroffset/parameter/term
- listitem
-  para
-   Row to move the internal offset to in the 
parameterresult/parameter resource.

-   Rows are numbered starting from zero.
-  /para
- /listitem
-/varlistentry
/variablelist
   /para
  /refsect1
@@ -66,34 +57,6 @@
   /para
  /refsect1
  - refsect1 role=examples
-  reftitle.examples;
-  para
-   example
-titlefunctionpg_result_seek/function example/title
-programlisting role=php
-![CDATA[
-?php
-
-// Connect to the database
-$conn = pg_pconnect(dbname=publisher);
-
-// Execute a query
-$result = pg_query($conn, SELECT author, email FROM authors);
-
-// Seek to the 3rd row (assuming there are 3 rows)
-pg_result_seek($result, 2);
-
-// Fetch the 3rd row
-$row = pg_fetch_row($result);
- -?
-]]
-/programlisting
-   /example
-  /para
- /refsect1
-   refsect1 role=seealso
   reftitle.seealso;
   para


[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-result-error.xml

2005-11-29 Thread Christopher Kings-Lynne
chriskl Tue Nov 29 23:06:57 2005 EDT

  Modified files:  
/phpdoc/en/reference/pgsql/functionspg-result-error.xml 
  Log:
  Re-add pg_result_error() example function.
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-result-error.xml?r1=1.8r2=1.9ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-result-error.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.8 
phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.9
--- phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.8 Tue Nov 29 
14:25:10 2005
+++ phpdoc/en/reference/pgsql/functions/pg-result-error.xml Tue Nov 29 
23:06:54 2005
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.8 $ --
+!-- $Revision: 1.9 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --
 refentry id='function.pg-result-error'
  refnamediv
@@ -57,6 +57,29 @@
   /para
  /refsect1
  
+ refsect1 role=examples
+  reftitle.examples;
+  para
+   example
+titlefunctionpg_result_error/function example/title
+programlisting role=php
+![CDATA[
+?php
+  $dbconn = pg_connect(dbname=publisher) or die(Could not connect);
+
+  if (!pg_connection_busy($dbconn)) {
+  pg_send_query($dbconn, select * from doesnotexist;);
+  }
+  
+  $res1 = pg_get_result($dbconn);
+  echo pg_result_error($res1);
+?
+]]
+/programlisting
+   /example
+  /para
+ /refsect1
+
  refsect1 role=seealso
   reftitle.seealso;
   para


[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-result-error.xml

2004-07-27 Thread Jakub Vrana
vrana   Tue Jul 27 14:48:22 2004 EDT

  Modified files:  
/phpdoc/en/reference/pgsql/functionspg-result-error.xml 
  Log:
  How to use (bug #18747)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-result-error.xml?r1=1.2r2=1.3ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-result-error.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.2 
phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.3
--- phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.2 Wed Apr 17 02:43:22 
2002
+++ phpdoc/en/reference/pgsql/functions/pg-result-error.xml Tue Jul 27 14:48:22 
2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --
   refentry id='function.pg-result-error'
refnamediv
@@ -19,6 +19,11 @@
  associated with parameterresult/parameter resource. Therefore,
  user has better chance to get better error message than
  functionpg_last_error/function.
+/para
+para
+ Because functionpg_query/function returns false; if the query fails,
+ you must must use functionpg_send_query/function and
+ functionpg_get_result/function to get the result handle.
 /para
 para
  See also functionpg_query/function,


[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-result-error.xml

2004-07-27 Thread Yannick TORRES
yannick Tue Jul 27 17:49:47 2004 EDT

  Modified files:  
/phpdoc/en/reference/pgsql/functionspg-result-error.xml 
  Log:
  typo
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-result-error.xml?r1=1.3r2=1.4ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-result-error.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.3 
phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.4
--- phpdoc/en/reference/pgsql/functions/pg-result-error.xml:1.3 Tue Jul 27 14:48:22 
2004
+++ phpdoc/en/reference/pgsql/functions/pg-result-error.xml Tue Jul 27 17:49:47 
2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.3 $ --
+!-- $Revision: 1.4 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --
   refentry id='function.pg-result-error'
refnamediv
@@ -22,7 +22,7 @@
 /para
 para
  Because functionpg_query/function returns false; if the query fails,
- you must must use functionpg_send_query/function and
+ you must use functionpg_send_query/function and
  functionpg_get_result/function to get the result handle.
 /para
 para