diff --git a/generated/functionsList.php b/generated/functionsList.php index 7a195dd4..e030273a 100644 --- a/generated/functionsList.php +++ b/generated/functionsList.php @@ -710,6 +710,7 @@ 'pg_result_error_field', 'pg_result_seek', 'pg_select', + 'pg_set_chunked_rows_size', 'pg_socket', 'pg_trace', 'pg_update', diff --git a/generated/pgsql.php b/generated/pgsql.php index 502ed781..346519fb 100644 --- a/generated/pgsql.php +++ b/generated/pgsql.php @@ -1267,6 +1267,24 @@ function pg_select($connection, string $table_name, array $conditions, int $flag } +/** + * + * + * @param \PgSql\Connection $connection An PgSql\Connection instance. + * @param int $size + * @throws PgsqlException + * + */ +function pg_set_chunked_rows_size(\PgSql\Connection $connection, int $size): void +{ + error_clear_last(); + $safeResult = \pg_set_chunked_rows_size($connection, $size); + if ($safeResult === false) { + throw PgsqlException::createFromPhpError(); + } +} + + /** * pg_socket returns a read only resource * corresponding to the socket underlying the given PostgreSQL connection. diff --git a/rector-migrate.php b/rector-migrate.php index e5628942..e94882d6 100644 --- a/rector-migrate.php +++ b/rector-migrate.php @@ -717,6 +717,7 @@ 'pg_result_error_field' => 'Safe\pg_result_error_field', 'pg_result_seek' => 'Safe\pg_result_seek', 'pg_select' => 'Safe\pg_select', + 'pg_set_chunked_rows_size' => 'Safe\pg_set_chunked_rows_size', 'pg_socket' => 'Safe\pg_socket', 'pg_trace' => 'Safe\pg_trace', 'pg_update' => 'Safe\pg_update',