php-src/ext/pdo_pgsql/tests
Nikita Popov caa710037e Rewrite PDO result binding
Instead of requiring the type to be determined in advance by the
describer function and then requiring get_col to return a buffer
of appropriate type, allow get_col to return an arbitrary zval.
See UPGRADING.INTERNALS for a more detailed description of the
change.

This makes the result fetching simpler, more efficient and more
flexible. The general possibility already existed via the special
PDO_PARAM_ZVAL type, but the usage was very inconvenient and/or
inefficient. Now it's possible to easily implement behavior like
"return int if it fits, otherwise string" and to avoid any kind
of complex management of temporary buffers.

This also fixes bug #40913 (our second highest voted bug of all
time, for some reason). PARAM_LOB result bindings will now
consistently return a stream resource, independently of the used
database driver.

I've tried my best to update all PDO drivers for this change, but
some of the changes may be broken, as I cannot test or even build
some of these drivers (in particular PDO dblib and PDO oci).
Fixes are appreciated -- a working CI setup would be even more
appreciated ;)
2020-12-22 15:56:34 +01:00
..
bug36727.phpt Allow drivers to omit error code 2020-12-10 16:04:33 +01:00
bug43925.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug46274.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug46274_2.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug48764.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug61267.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug62479.phpt Run tidy 2020-09-18 14:28:32 +02:00
bug62498-32bit.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug62498.phpt Rewrite PDO result binding 2020-12-22 15:56:34 +01:00
bug62593.phpt PDO: Honor ATTR_STRINGIFY_FETCHES for booleans 2020-12-21 15:32:32 +01:00
bug64953.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug66584.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug67462.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug68199.phpt Run tidy 2020-09-18 14:28:32 +02:00
bug68371.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug69344.phpt Allow drivers to omit error code 2020-12-10 16:04:33 +01:00
bug69362.phpt Run tidy 2020-09-18 14:28:32 +02:00
bug69752.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug70313.phpt Fixed bug #72368 2020-12-10 16:53:08 +01:00
bug70861.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug71573.phpt Allow drivers to omit error code 2020-12-10 16:04:33 +01:00
bug71885.phpt PDO: Honor ATTR_STRINGIFY_FETCHES for booleans 2020-12-21 15:32:32 +01:00
bug71885_2.phpt PDO: Honor ATTR_STRINGIFY_FETCHES for booleans 2020-12-21 15:32:32 +01:00
bug72294.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug72570.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug72633.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug73959.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug75402.phpt PDO: Honor ATTR_STRINGIFY_FETCHES for booleans 2020-12-21 15:32:32 +01:00
bug_33876.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug_49985.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug_64705.phpt Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails 2020-08-11 17:12:48 +02:00
common.phpt Remove local variables 2019-02-03 21:03:00 +01:00
config.inc Reindent phpt files 2020-02-03 22:52:20 +01:00
CONFLICTS Implement fine-grained conflict handling 2019-02-20 11:20:40 +01:00
copy_from.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
copy_to.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
debug_emulated_prepares.phpt Rewrite PDO result binding 2020-12-22 15:56:34 +01:00
disable_prepares.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
getnotify.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
is_in_transaction.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
large_objects.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00