--TEST-- Bug #79596 (MySQL FLOAT truncates to int some locales) --SKIPIF-- --FILE-- setAttribute(\PDO::ATTR_EMULATE_PREPARES, false); $pdo->query('CREATE TABLE bug79596 (broken FLOAT(2,1))'); $pdo->query('INSERT INTO bug79596 VALUES(4.9)'); var_dump($pdo->query('SELECT broken FROM bug79596')->fetchColumn(0)); ?> --CLEAN-- exec("DROP TABLE IF EXISTS bug79596"); ?> --EXPECT-- float(4.9)