php / php-src

The PHP Interpreter
https://www.php.net
Other
37.68k stars 7.71k forks source link

new parameter in pg_copy_from and pg_copy_to #7996

Open dx689 opened 2 years ago

dx689 commented 2 years ago

Description

Hi everyone! I use function pg_copy_from and encountered with missing parameter which describing escape char. I need new parameter in pg_copy_from and pg_copy_to functions. Please, anybody, adding them to php-src/ext/pgsql/pgsql.c and (https://github.com/php/php-src/blob/master/ext/pgsql/pgsql.c#L3070) Described PG parameter is here - https://postgrespro.ru/docs/postgresql/11/sql-copy, named as ESCAPE.

Girgias commented 1 month ago

@devnexen is this something that should be added?

devnexen commented 1 month ago

Sure seems a sensible thing to do.