ZEN-14606. Fixed bug with decimal from mysql api

https://jira.zenoss.com/browse/ZEN-14606
https://s6.parature.com/link/desk/16052/16059/Ticket/25922