-
Bug
-
Resolution: Fixed
-
Minor
-
2.0.4, 2.1.1, 2.2
-
Any
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_20_STABLE, MOODLE_21_STABLE
-
This was discovered when working on MDL-29566.
It seems that PostgreSQL, when returning defaults for numerical columns, if the value is negative, it comes enclosed by parenthesis, aka: (-1).
So this issue will introduce the necessary tests to reveal the problem and then fix it under PostgreSQL (and others if necessary)