Project

General

Profile

Actions

Bug #17574

closed

Double values are truncated to their prefixes

Added by Karsten Dambekalns over 16 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Should have
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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #20346: DBAL: Float database field gets converted to integer on insertClosedXavier Perseguers2009-04-23

Actions
Actions #1

Updated by Xavier Perseguers over 14 years ago

Fixed by #10965

Actions

Also available in: Atom PDF