Skip to content

Commit

Permalink
regenerated the files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharhamel committed Oct 16, 2021
1 parent 0c573cd commit ae5df91
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@
'pg_field_table',
'pg_flush',
'pg_free_result',
'pg_host',
'pg_insert',
'pg_last_oid',
'pg_lo_close',
Expand Down
29 changes: 29 additions & 0 deletions generated/pgsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,35 @@ function pg_free_result($result): void
}


/**
* pg_host returns the host name of the given
* PostgreSQL connection instance is
* connected to.
*
* @param resource $connection An PgSql\Connection instance.
* When connection is NULL, the default connection is used.
* The default connection is the last connection made by pg_connect
* or pg_pconnect.
* @return string A string containing the name of the host the
* connection is to.
* @throws PgsqlException
*
*/
function pg_host($connection = null): string
{
error_clear_last();
if ($connection !== null) {
$result = \pg_host($connection);
} else {
$result = \pg_host();
}
if ($result === '') {
throw PgsqlException::createFromPhpError();
}
return $result;
}


/**
* pg_insert inserts the values
* of values into the table specified
Expand Down
1 change: 1 addition & 0 deletions rector-migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@
'pg_field_table' => 'Safe\pg_field_table',
'pg_flush' => 'Safe\pg_flush',
'pg_free_result' => 'Safe\pg_free_result',
'pg_host' => 'Safe\pg_host',
'pg_insert' => 'Safe\pg_insert',
'pg_last_oid' => 'Safe\pg_last_oid',
'pg_lo_close' => 'Safe\pg_lo_close',
Expand Down

0 comments on commit ae5df91

Please sign in to comment.