php-src/ext/pdo_mysql
Nikita Popov c18b1aea28 PDO MySQL: Use native types for results
Previously, PDO MySQL only fetched data as native int/float if
native prepared statements were used. This patch updates PDO to
have the same behavior for emulated prepared statements, and thus
removes the largest remaining discrepancy between these two modes.

Note that PDO already has a ATTR_STRINGIFY_FETCHES option to control
whether native types are desired or not. The previous output can
be restored by enabling this option.

Most of the tests make use of that option, because this allows the
tests to work under libmysqlclient as well, which currently always
returns string results (independently of whether native or emulated
PS are used).
2020-12-17 10:54:34 +01:00
..
tests PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
config.m4 Don't assume libmysqlclient library name 2020-11-12 15:11:56 +01:00
config.w32 Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
CREDITS Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
get_error_codes.php Apply tidy formatting 2020-02-03 13:41:31 +01:00
mysql_driver.c PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
mysql_statement.c PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
pdo_mysql.c Convert warning to assetion in MySQL PDO driver 2020-09-15 12:49:59 +02:00
php_pdo_mysql_int.h PDO MySQL: Use native types for results 2020-12-17 10:54:34 +01:00
php_pdo_mysql_sqlstate.h trailing whitespace removal 2015-01-10 15:07:38 -08:00
php_pdo_mysql.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00