]> granicus.if.org Git - php/commit
Refactored custom PDO_pgsql methods to trigger errors/exceptions
authorMatteo Beccati <mbeccati@php.net>
Tue, 4 Jun 2013 15:20:20 +0000 (17:20 +0200)
committerMatteo Beccati <mbeccati@php.net>
Tue, 4 Jun 2013 23:58:37 +0000 (01:58 +0200)
commitbaabd1192973156ac79c35f6d1b0dced4af8e8fb
treebe918c41e4cd8e052e1cd26ecece8d308130fa78
parent1e36e45d97da9e212b00f339c90b995908efa70c
Refactored custom PDO_pgsql methods to trigger errors/exceptions

BC Break: the custom methods were previously just return false on
failure. Now they throw an exception with a proper error message.
An hopefully welcome improvement, but some application might be
depending on the old behaviour. FWIW the PDO::pgsqlCopy* methods
are not documented, even though they are available since 5.3.x.
ext/pdo_pgsql/pgsql_driver.c
ext/pdo_pgsql/php_pdo_pgsql_int.h
ext/pdo_pgsql/tests/copy_from.phpt
ext/pdo_pgsql/tests/copy_to.phpt