Issues

ZF-3624: float(10,8) is handled in wrong way

Description

i'm using pdo_mysql, instance a zend_db_table to get table metadata (with zend_db_table::info() method), the bug is that, if on the db, a column is a float(n,n), the info() method returns DATA_TYPE = 'float(n,n)' instead of "float"

this was already solved for the "decimal" data type time ago

Comments

the fix should be done in Zend_Db_Adapter_Pdo_Mysql::describeTable() using something like the same code used for the "decimal" detection (line 160 for ZF 1.5.2)

if (preg_match('/^decimal((\d+),(\d+))/', $row[$type], $matches)) { $row[$type] = 'decimal'; $precision = $matches[1]; $scale = $matches[2]; }

maybe replacing "decimal" with "float" would fix

any news?

any news?

was not fixed in 1.5.3 nor in 1.6.1

again not fixed in 1.6.2, please it's 1 line of code and I already gave that line! you need less than a minute to fix this bug and you wait for months

1.7 is out, without my patch!

it's one line of code, I wrote it and sent it to you, could you please integrate it?

Issue ZF-3624: library/.../Mysql.php fix for float(n,n) data type return now float

tests/.../MysqlTest.php testAdapterDescribeTableAttributeColumn

tests/.../Common.php added a column in zfprice with the type float(10,8)

Issue ZF-3624: library/.../Mysql.php fix for float(n,n) data type return now float

tests/.../MysqlTest.php testAdapterDescribeTableAttributeColumn

tests/.../Common.php added a column in zfprice with the type float(10,8)

Fixed in SVN12788. But not merged to 1.7-branch.

Merged to 1.7-branch with SVN12842