Anonymous contribution

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342953 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jean-Sebastien Hedde 2017-08-28 11:37:07 +00:00
parent 92b95c4afa
commit 9e83f4f6c0

View file

@ -5,7 +5,7 @@
<refnamediv>
<refname>pg_convert</refname>
<refpurpose>
Convert associative array values into suitable for SQL statement
Convert associative array values into forms suitable for SQL statements
</refpurpose>
</refnamediv>
@ -31,15 +31,15 @@
</para>
<note>
<para>
Since PHP 5.6.0, it accepts boolean values. It converted to PostgreSQL
boolean. String representations of boolean value is also supported. &null; is
Since PHP 5.6.0, it accepts boolean values, converting them to PostgreSQL
booleans. String representations of boolean values are also supported. &null; is
converted to PostgreSQL NULL.
</para>
<para>
Prior to PHP 5.6.0, 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.
converted to the string 'TRUE' which is not a valid entry for boolean fields
in PostgreSQL. Use one of "t", "true", 1, "y", "yes" instead.
</para>
</note>
</refsect1>
@ -133,7 +133,7 @@
<entry>5.6.0</entry>
<entry>
No longer experimental. Boolean/NULL data types are supported. Unknown/unsupported
data types are escaped without validation. <function>pg_convert</function> could
data types are escaped without validation. <function>pg_convert</function> can
be used with any data types.
</entry>
</row>