Feature: #88805 - Add type to \TYPO3\CMS\Core\Database\Query\QueryBuilder::set
See forge#88805
Description
TYPO3\
accepts as additional fourth parameter
a type the query value should be casted to when third parameter (
create
)
is
true
. Per default string (
\PDO::
) is used.
Impact
Type safe query parameter setting is now also possible via
set
.
Example:
$queryBuilder->set($fieldName, $fieldValue, true, \PDO::PARAM_INT);
Copied!
ensures
$field
is handled as integer type in the resulting database query.