nlopess         Sun Jul  4 05:10:50 2004 EDT

  Modified files:              
    /phpdoc/en/reference/pgsql  reference.xml 
    /phpdoc/en/reference/pgsql/functions        pg-field-prtlen.xml 
  Log:
  fix #28994: fix proto in field_prtlen and add note about upper-case identifiers
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/reference.xml?r1=1.20&r2=1.21&ty=u
Index: phpdoc/en/reference/pgsql/reference.xml
diff -u phpdoc/en/reference/pgsql/reference.xml:1.20 
phpdoc/en/reference/pgsql/reference.xml:1.21
--- phpdoc/en/reference/pgsql/reference.xml:1.20        Sat Feb 28 10:13:42 2004
+++ phpdoc/en/reference/pgsql/reference.xml     Sun Jul  4 05:10:49 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.20 $ -->
+<!-- $Revision: 1.21 $ -->
  <reference id="ref.pgsql">
   <title>PostgreSQL Functions</title>
   <titleabbrev>PostgreSQL</titleabbrev>
@@ -263,6 +263,13 @@
 ]]>
      </programlisting>
     </example>
+    <note>
+     <para>
+      PostgreSQL automatically folds all identifiers (e.g. table/column names)
+      to lower-case values. To get it to recognize upper-case values, you must
+      always wrap the identifier in quotes.
+     </para>
+    </note>
    </section>
 
    &reference.pgsql.constants;
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-field-prtlen.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-field-prtlen.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-field-prtlen.xml:1.3 
phpdoc/en/reference/pgsql/functions/pg-field-prtlen.xml:1.4
--- phpdoc/en/reference/pgsql/functions/pg-field-prtlen.xml:1.3 Tue Jul 15 18:36:03 
2003
+++ phpdoc/en/reference/pgsql/functions/pg-field-prtlen.xml     Sun Jul  4 05:10:50 
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.2 -->
   <refentry id="function.pg-field-prtlen">
    <refnamediv>
@@ -11,14 +11,20 @@
      <methodsynopsis>
       <type>int</type><methodname>pg_field_prtlen</methodname>
       <methodparam><type>resource</type><parameter>result</parameter></methodparam>
-      <methodparam><type>int</type><parameter>row_number</parameter></methodparam>
-      <methodparam><type>string</type><parameter>field_name</parameter></methodparam>
+      <methodparam 
choice="opt"><type>int</type><parameter>row_number</parameter></methodparam>
+      
<methodparam><type>mixed</type><parameter>field_name_or_number</parameter></methodparam>
      </methodsynopsis>
     <para>
      <function>pg_field_prtlen</function> returns the actual printed
      length (number of characters) of a specific value in a PostgreSQL
      <parameter>result</parameter>.  Row numbering starts at 0.  This
      function will return -1 on an error.
+    </para>
+    <para>
+     <parameter>field_name_or_number</parameter> can be passed either as an
+     <type>integer</type> or as a <type>string</type>. If it is passed as an
+     <type>integer</type>, PHP recognises it as the field number, otherwise as
+     field name.
     </para>
     <para>
      See the example given at the <function>pg_field_name</function> page.

Reply via email to