For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > June 2005 > cvs: phpdoc /en/reference/pgsql/functions pg-convert.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/reference/pgsql/functions pg-convert.xml
Mehdi Achour

2005-06-07, 8:56 am

didou Tue Jun 7 04:28:15 2005 EDT

Modified files:
/phpdoc/en/reference/pgsql/functions pg-convert.xml
Log:
use &true; where appropriated and WS
# please don't exceed 78 for lines length

http://cvs.php.net/diff.php/phpdoc/...12&r2=1.13&ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-convert.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-convert.xml:1.12 phpdoc/en/reference/pgsql/functions/pg-convert.xml:1.13
--- phpdoc/en/reference/pgsql/functions/pg-convert.xml:1.12 Mon Jun 6 08:28:05 2005
+++ phpdoc/en/reference/pgsql/functions/pg-convert.xml Tue Jun 7 04:28:14 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 -->
<refentry id='function.pg-convert'>
<refnamediv>
@@ -21,19 +21,20 @@
<para>
<function>pg_convert</function> checks and converts the values in
<parameter>assoc_array</parameter> into suitable values for use in a SQL
- statement. Precondition for <function>pg_convert</function> is the existence
- of a table <parameter>table_name</parameter> which has at least as many columns
- as <parameter>assoc_array</parameter> has elements. The fieldnames in
- <parameter>table_name</parameter> must match the indices in <parameter>assoc_array</parameter>
- and the corresponding datatypes must be compatible. Returns an array with
- the converted values on success, &false; otherwise.
+ statement. Precondition for <function>pg_convert</function> is the
+ existence of a table <parameter>table_name</parameter> which has at least
+ as many columns as <parameter>assoc_array</parameter> has elements. The
+ fieldnames in <parameter>table_name</parameter> must match the indices in
+ <parameter>assoc_array</parameter> and the corresponding datatypes must be
+ compatible. Returns an array with the converted values on success, &false;
+ otherwise.
</para>
<note>
<para>
- If there are boolean fields in <parameter>table_name</parameter> don't use the
- constant TRUE in <parameter>assoc_array</parameter>. It will be converted to the
- string 'TRUE' which is no valid entry for boolean fields in PostgreSQL. Use one
- of t, true, 1, y, yes instead.
+ If there are boolean fields in <parameter>table_name</parameter> don't
+ use the constant &true; in <parameter>assoc_array</parameter>. It will be
+ converted to the string 'TRUE' which is no valid entry for boolean fields
+ in PostgreSQL. Use one of t, true, 1, y, yes instead.
</para>
</note>
&warn.experimental.func;
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com