mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
use &true; where appropriated and WS
# please don't exceed 78 for lines length git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@187806 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
bb78f6b66a
commit
737c892c52
1 changed files with 12 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue