Issue Bug Closed

#17574Double values are truncated to their prefixes

Karsten Dambekalns 08/31/07, 13:45 updated 02/05/10, 22:39

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.