Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions reference/pgsql/functions/pg-convert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
A <classname>ValueError</classname> or <classname>TypeError</classname> is thrown
when the value or type of field does not match properly with a PostgreSQL's type.
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
Expand All @@ -96,6 +104,14 @@
</row>
</thead>
<tbody>
<row>
<entry>8.3.0</entry>
<entry>
Now throws a <classname>ValueError</classname> or <classname>TypeError</classname> error
when the value or type of field does not match properly with a PostgreSQL's type;
previously an <constant>E_WARNING</constant> was emitted.
</entry>
</row>
&pgsql.changelog.connection-object;
</tbody>
</tgroup>
Expand Down
16 changes: 16 additions & 0 deletions reference/pgsql/functions/pg-fetch-object.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
A <classname>ValueError</classname> is thrown when
the <parameter>constructor_args</parameter> is non-empty with the class not having constructor.
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
Expand All @@ -96,6 +104,14 @@
</row>
</thead>
<tbody>
<row>
<entry>8.3.0</entry>
<entry>
Now throws a <classname>ValueError</classname> exception when
the <parameter>constructor_args</parameter> is non-empty with the class not having constructor;
previously an <classname>Exception</classname> was thrown.
</entry>
</row>
&pgsql.changelog.result-object;
</tbody>
</tgroup>
Expand Down
8 changes: 7 additions & 1 deletion reference/pgsql/functions/pg-fetch-result.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<methodsynopsis>
<type class="union"><type>string</type><type>false</type><type>null</type></type><methodname>pg_fetch_result</methodname>
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>row</parameter></methodparam>
<methodparam><type class="union"><type>string</type><type>false</type><type>null</type></type><parameter>row</parameter></methodparam>
<methodparam><type>mixed</type><parameter>field</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
Expand Down Expand Up @@ -90,6 +90,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.3.0</entry>
<entry>
<parameter>row</parameter> is now nullable.
</entry>
</row>
&pgsql.changelog.result-object;
</tbody>
</tgroup>
Expand Down
8 changes: 7 additions & 1 deletion reference/pgsql/functions/pg-field-is-null.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<methodsynopsis>
<type>int</type><methodname>pg_field_is_null</methodname>
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>row</parameter></methodparam>
<methodparam><type class="union"><type>string</type><type>false</type><type>null</type></type><parameter>row</parameter></methodparam>
<methodparam><type>mixed</type><parameter>field</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
Expand Down Expand Up @@ -82,6 +82,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.3.0</entry>
<entry>
<parameter>row</parameter> is now nullable.
</entry>
</row>
&pgsql.changelog.result-object;
</tbody>
</tgroup>
Expand Down
8 changes: 7 additions & 1 deletion reference/pgsql/functions/pg-field-prtlen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<methodsynopsis>
<type>int</type><methodname>pg_field_prtlen</methodname>
<methodparam><type>PgSql\Result</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>row_number</parameter></methodparam>
<methodparam><type class="union"><type>string</type><type>false</type><type>null</type></type><parameter>row</parameter></methodparam>
<methodparam><type>mixed</type><parameter>field_name_or_number</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
Expand Down Expand Up @@ -83,6 +83,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.3.0</entry>
<entry>
<parameter>row</parameter> is now nullable.
</entry>
</row>
&pgsql.changelog.result-object;
</tbody>
</tgroup>
Expand Down
26 changes: 26 additions & 0 deletions reference/pgsql/functions/pg-insert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,17 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
A <classname>ValueError</classname> is thrown when the specified table is invalid.
</para>
<para>
A <classname>ValueError</classname> or <classname>TypeError</classname> is thrown
when the value or type of field does not match properly with a PostgreSQL's type.
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
Expand All @@ -108,6 +119,21 @@
</row>
</thead>
<tbody>
<row>
<entry>8.3.0</entry>
<entry>
Now throws a <classname>ValueError</classname> error when the specified table is invalid;
previously an <constant>E_WARNING</constant> was emitted.
</entry>
</row>
<row>
<entry>8.3.0</entry>
<entry>
Now throws a <classname>ValueError</classname> or <classname>TypeError</classname> error
when the value or type of field does not match properly with a PostgreSQL's type;
previously an <constant>E_WARNING</constant> was emitted.
</entry>
</row>
&pgsql.changelog.return-result-object;
&pgsql.changelog.connection-object;
</tbody>
Expand Down