api_v3_SyntaxConformanceTest - Fix hard failure
authorTim Otten <totten@civicrm.org>
Tue, 4 Mar 2014 23:39:33 +0000 (15:39 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 4 Mar 2014 23:41:29 +0000 (15:41 -0800)
commitac5f2ccd96abd48231707f429d900ebe1e5f23bf
tree5735d25a31b250fb7340cbdb812d38422302bc39
parentcc86312e324533e5b92221b4731178f9d9c0c7cf
api_v3_SyntaxConformanceTest - Fix hard failure

The arbitrarily generated value of "tax_rate" violates the MySQL precision
constraints. This commit ensures that the arbitrarily chosen values meet
the constraint (while trying to preserve the old series of generated
numbers for most use-cases).
CRM/Core/CodeGen/Specification.php
CRM/Core/DAO.php
CRM/Utils/Number.php [new file with mode: 0644]
tests/phpunit/CRM/Utils/NumberTest.php [new file with mode: 0644]
xml/templates/dao.tpl