Actions
Bug #17574
closedDouble values are truncated to their prefixes
Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2007-08-31
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In class 'ux_t3lib_DB' in INSERTquery and UPDATEquery there are hardcasts (the $mt stuff) like this:
$mt = $this->sql_field_metatype($table,$k);
$v = (($mt{0}=='I')||($mt{0}=='F')) ? (int)$v : $v;
this causes double values to be truncated to their prefixes like '12.99' becomes '12'.
Reported by Markus Bopp
(issue imported from #M6246)
Actions