Bug #8352 Updated: mysql_field_len on a decimal field only report the length before the dot

From: Date: Wed, 25 Apr 2001 17:43:35 +0000
Subject: Bug #8352 Updated: 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-52412@lists.php.net to get a copy of this message
ID: 8352 Updated by: rasmus Reported By: zbinden@dataflow.ch Old-Status: Open Status: Closed Bug Type: MySQL related PHP Version: 4.0.2 Assigned To: Comments: User misunderstood how MySQL's decimal() works. Previous Comments: --------------------------------------------------------------------------- [2000-12-21 09:30:21] zbinden@dataflow.ch 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)? --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8352&edit=2

« previous php.dev (#52412) next »