Change decimal behavior to be like MySQLdb.

All tests pass.