From 44a9e3bd55dc2f23a3479fc238d09939044941cf Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Sat, 17 Feb 2024 11:33:43 +0300 Subject: [PATCH 1/2] [PHP 8.3] Update PGSQL --- reference/pgsql/functions/pg-convert.xml | 16 ++++++++++++ reference/pgsql/functions/pg-fetch-object.xml | 16 ++++++++++++ reference/pgsql/functions/pg-fetch-result.xml | 8 +++++- .../pgsql/functions/pg-field-is-null.xml | 8 +++++- reference/pgsql/functions/pg-field-prtlen.xml | 8 +++++- reference/pgsql/functions/pg-insert.xml | 26 +++++++++++++++++++ 6 files changed, 79 insertions(+), 3 deletions(-) diff --git a/reference/pgsql/functions/pg-convert.xml b/reference/pgsql/functions/pg-convert.xml index 19dd4c042420..7c56c5314678 100644 --- a/reference/pgsql/functions/pg-convert.xml +++ b/reference/pgsql/functions/pg-convert.xml @@ -85,6 +85,14 @@ + + &reftitle.errors; + + A ValueError or TypeError is thrown + when the value or type of field does not match properly with a PostgreSQL's type. + + + &reftitle.changelog; @@ -96,6 +104,14 @@ + + 8.3.0 + + Now throws a ValueError or TypeError error + when the value or type of field does not match properly with a PostgreSQL's type; + previously an E_WARNING was emitted. + + &pgsql.changelog.connection-object; diff --git a/reference/pgsql/functions/pg-fetch-object.xml b/reference/pgsql/functions/pg-fetch-object.xml index 049b3071f5df..7e82297e9dd4 100644 --- a/reference/pgsql/functions/pg-fetch-object.xml +++ b/reference/pgsql/functions/pg-fetch-object.xml @@ -85,6 +85,14 @@ + + &reftitle.errors; + + A ValueError is thrown when + the constructor_args is non-empty with the class not having constructor. + + + &reftitle.changelog; @@ -96,6 +104,14 @@ + + 8.3.0 + + Now throws a ValueError exception when + the constructor_args is non-empty with the class not having constructor; + previously an Exception was thrown. + + &pgsql.changelog.result-object; diff --git a/reference/pgsql/functions/pg-fetch-result.xml b/reference/pgsql/functions/pg-fetch-result.xml index bb673910a233..9c3273fdc508 100644 --- a/reference/pgsql/functions/pg-fetch-result.xml +++ b/reference/pgsql/functions/pg-fetch-result.xml @@ -12,7 +12,7 @@ stringfalsenullpg_fetch_result PgSql\Resultresult - introw + stringfalsenullrow mixedfield @@ -90,6 +90,12 @@ + + 8.3.0 + + The row parameter is now nullable. + + &pgsql.changelog.result-object; diff --git a/reference/pgsql/functions/pg-field-is-null.xml b/reference/pgsql/functions/pg-field-is-null.xml index a1a763f9646f..9f51d59b08c5 100644 --- a/reference/pgsql/functions/pg-field-is-null.xml +++ b/reference/pgsql/functions/pg-field-is-null.xml @@ -12,7 +12,7 @@ intpg_field_is_null PgSql\Resultresult - introw + stringfalsenullrow mixedfield @@ -82,6 +82,12 @@ + + 8.3.0 + + The row parameter is now nullable. + + &pgsql.changelog.result-object; diff --git a/reference/pgsql/functions/pg-field-prtlen.xml b/reference/pgsql/functions/pg-field-prtlen.xml index 9f5c38144ad3..33de21543e98 100644 --- a/reference/pgsql/functions/pg-field-prtlen.xml +++ b/reference/pgsql/functions/pg-field-prtlen.xml @@ -12,7 +12,7 @@ intpg_field_prtlen PgSql\Resultresult - introw_number + stringfalsenullrow mixedfield_name_or_number @@ -83,6 +83,12 @@ + + 8.3.0 + + The row parameter is now nullable. + + &pgsql.changelog.result-object; diff --git a/reference/pgsql/functions/pg-insert.xml b/reference/pgsql/functions/pg-insert.xml index 054fda48c3cf..a27c40a2583d 100644 --- a/reference/pgsql/functions/pg-insert.xml +++ b/reference/pgsql/functions/pg-insert.xml @@ -97,6 +97,17 @@ + + &reftitle.errors; + + A ValueError is thrown when the specified table is invalid. + + + A ValueError or TypeError is thrown + when the value or type of field does not match properly with a PostgreSQL's type. + + + &reftitle.changelog; @@ -108,6 +119,21 @@ + + 8.3.0 + + Now throws a ValueError error when the specified table is invalid; + previously an E_WARNING was emitted. + + + + 8.3.0 + + Now throws a ValueError or TypeError error + when the value or type of field does not match properly with a PostgreSQL's type; + previously an E_WARNING was emitted. + + &pgsql.changelog.return-result-object; &pgsql.changelog.connection-object; From 760d8e4be68c862bab7c6e163243b9a86dab3d5d Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Sun, 18 Feb 2024 23:06:11 +0300 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: David CARLIER --- reference/pgsql/functions/pg-fetch-result.xml | 2 +- reference/pgsql/functions/pg-field-is-null.xml | 2 +- reference/pgsql/functions/pg-field-prtlen.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/pgsql/functions/pg-fetch-result.xml b/reference/pgsql/functions/pg-fetch-result.xml index 9c3273fdc508..b83d5f874215 100644 --- a/reference/pgsql/functions/pg-fetch-result.xml +++ b/reference/pgsql/functions/pg-fetch-result.xml @@ -93,7 +93,7 @@ 8.3.0 - The row parameter is now nullable. + row is now nullable. &pgsql.changelog.result-object; diff --git a/reference/pgsql/functions/pg-field-is-null.xml b/reference/pgsql/functions/pg-field-is-null.xml index 9f51d59b08c5..24bdc102e4a4 100644 --- a/reference/pgsql/functions/pg-field-is-null.xml +++ b/reference/pgsql/functions/pg-field-is-null.xml @@ -85,7 +85,7 @@ 8.3.0 - The row parameter is now nullable. + row is now nullable. &pgsql.changelog.result-object; diff --git a/reference/pgsql/functions/pg-field-prtlen.xml b/reference/pgsql/functions/pg-field-prtlen.xml index 33de21543e98..f88d2a466466 100644 --- a/reference/pgsql/functions/pg-field-prtlen.xml +++ b/reference/pgsql/functions/pg-field-prtlen.xml @@ -86,7 +86,7 @@ 8.3.0 - The row parameter is now nullable. + row is now nullable. &pgsql.changelog.result-object;