Actions
Bug #88272
closedDifferent return types between mysqli and pdo_mysql driver
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2019-05-04
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The mysqli
driver is returning most types as they are in the database, so integers are returned as integers, the pdo_mysql
driver casts everything to strings. This makes switching to a different driver a hell of a job, expecially coming from mysqli and going to pdo_mysql. When developing with mysqli, you get properly casted values back from Doctrine, so as a developer you won't cast them anymore to a specific type, when the type is already what it needs to be. Especially extension can break easily when developed on mysqli, but executed on a system with pdo_mysql.
It would be good to get the same behaviour from both drivers, both returning the types as they are in the database, so integers returned as integers.
Actions