]> git.mjollnir.org Git - moodle.git/commit
MDL-20734 empties and zeros - implemented the normalise_value() function in
authorEloy Lafuente <stronk7@moodle.org>
Tue, 3 Nov 2009 23:34:43 +0000 (23:34 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Tue, 3 Nov 2009 23:34:43 +0000 (23:34 +0000)
commit8fb501e96c2bd470ebf316d92fca80ffb38ce244
treefbcf9939447829c1f9f00ddc24e871f8c554b5be
parent8843e0bb3cb62df8fff8d800940ecdd25be80801
MDL-20734 empties and zeros - implemented the normalise_value() function in
mysql and postgres to perform central normalisation of values for insert/
update/set_field. Now all DB drivers cast empty strings to 0 when working
with numeric columns (integer and decimal)
lib/dml/mysqli_native_moodle_database.php
lib/dml/pgsql_native_moodle_database.php