mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Follow-up nit
Use correct function name instead of the one from the copy/paste Also update pg_delete as it has the same issues
This commit is contained in:
parent
5589cbb636
commit
81aced57e0
2 changed files with 12 additions and 14 deletions
|
@ -19,21 +19,19 @@
|
|||
</methodsynopsis>
|
||||
<para>
|
||||
<function>pg_delete</function> deletes records from a table
|
||||
specified by the keys and values
|
||||
in <parameter>conditions</parameter>. If <parameter>flags</parameter>
|
||||
is specified, <function>pg_convert</function> is applied
|
||||
to <parameter>conditions</parameter> with the specified options.
|
||||
</para>
|
||||
<para>If <literal>options</literal> is specified,
|
||||
<function>pg_convert</function> is applied to
|
||||
<literal>assoc_array</literal> with the specified flags.
|
||||
specified by the keys and values in <parameter>conditions</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
By default <function>pg_delete</function> passes raw values. Values
|
||||
must be escaped or PGSQL_DML_ESCAPE option must be
|
||||
specified. PGSQL_DML_ESCAPE quotes and escapes
|
||||
parameters/identifiers. Therefore, table/column names became case
|
||||
sensitive.
|
||||
If <parameter>flags</parameter> is specified,
|
||||
<function>pg_convert</function> is applied to
|
||||
<parameter>values</parameter> with the specified flags.
|
||||
</para>
|
||||
<para>
|
||||
By default <function>pg_delete</function> passes raw values.
|
||||
Values must be escaped or the <constant>PGSQL_DML_ESCAPE</constant> flag
|
||||
must be specified in <parameter>flags</parameter>.
|
||||
<constant>PGSQL_DML_ESCAPE</constant> quotes and escapes parameters/identifiers.
|
||||
Therefore, table/column names become case sensitive.
|
||||
</para>
|
||||
<para>
|
||||
Note that neither escape nor prepared query can protect LIKE query,
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<parameter>values</parameter> with the specified flags.
|
||||
</para>
|
||||
<para>
|
||||
By default <function>pg_update</function> passes raw values.
|
||||
By default <function>pg_insert</function> passes raw values.
|
||||
Values must be escaped or the <constant>PGSQL_DML_ESCAPE</constant> flag
|
||||
must be specified in <parameter>flags</parameter>.
|
||||
<constant>PGSQL_DML_ESCAPE</constant> quotes and escapes parameters/identifiers.
|
||||
|
|
Loading…
Reference in a new issue