PHP 4.0 Bug #8352: mysql_field_len on a decimal field only report the length before the dot
| From: | zbinden at dataflow dot ch | Date: | Thu, 21 Dec 2000 14:30:21 +0000 |
| Subject: | PHP 4.0 Bug #8352: mysql_field_len on a decimal field only report the length before the dot | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42044@lists.php.net to get a copy of this message | ||
From: zbinden@dataflow.ch
Operating system: linux 2.2.x
PHP version: 4.0.2
PHP Bug Type: MySQL related
Bug description: mysql_field_len on a decimal field only report the length before the dot
mysql_field_len on a decimal field only report
the length before the dot:
create table articles (
articleid int(11) primary key auto_increment,
price decimal (9,2)
);
mysql_field_len on the field decimal returns
a 9. I think it should be a 12 (9 before, 2 after
and 1 for the point)?
--
Edit Bug report at: http://bugs.php.net/?id=8352&edit=1