Fix for grade_letter table and how MySQL version 5.0.3+ handles DECIMAL
fields Versions: 5.0.3+ truncate to 99.99 if a value of 100.00 or greater is input for grade_high or grade_low. See the following for more info: http://dev.mysql.com/doc/refman/5.0/en/precision-math-decimal-changes.html
This commit is contained in:
+2
-2
@@ -341,8 +341,8 @@ CREATE TABLE `prefix_grade_letter` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`courseid` int(10) unsigned NOT NULL default '0',
|
||||
`letter` varchar(8) NOT NULL default 'NA',
|
||||
`grade_high` decimal(4,2) NOT NULL default '100.00',
|
||||
`grade_low` decimal(4,2) NOT NULL default '0.00',
|
||||
`grade_high` decimal(5,2) NOT NULL default '100.00',
|
||||
`grade_low` decimal(5,2) NOT NULL default '0.00',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `courseid` (`courseid`)
|
||||
) TYPE=MyISAM ;
|
||||
|
||||
Reference in New Issue
Block a user