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:
George Peter Banyard 2021-10-11 00:49:59 +01:00
parent 5589cbb636
commit 81aced57e0
No known key found for this signature in database
GPG key ID: D49A095D7329F6DC
2 changed files with 12 additions and 14 deletions

View file

@ -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,

View file

@ -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.