Project

General

Profile

Actions

Bug #88272

closed

Different return types between mysqli and pdo_mysql driver

Added by Patrick Broens about 5 years ago. Updated over 4 years ago.

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #87518: Update ConnectionPool.phpClosed2019-01-22

Actions
Actions

Also available in: Atom PDF