php-src/ext/pdo_sqlite
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
..
tests Rewrite PDO result binding 2020-12-22 15:56:34 +01:00
config.m4 Fixed bug #79056 2020-01-03 11:08:48 +01:00
config.w32 Move HAVE_SQLITE3_CLOSE_V2 to pdo_sqlite 2019-07-21 00:40:59 +02:00
CREDITS
pdo_sqlite.c Get rid of empty function entries 2020-08-01 10:07:05 +02:00
php_pdo_sqlite_int.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_pdo_sqlite.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
sqlite_driver_arginfo.h Improve parameter names in ext/pdo_sqlite 2020-10-12 18:05:35 +02:00
sqlite_driver.c PDO: Store/pass query_string as zend_string 2020-12-14 10:43:28 +01:00
sqlite_driver.stub.php Improve parameter names in ext/pdo_sqlite 2020-10-12 18:05:35 +02:00
sqlite_statement.c Rewrite PDO result binding 2020-12-22 15:56:34 +01:00