Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle Num, Rat, and FatRat as numbers
Num can always use MYSQL_TYPE_DOUBLE. Rat can sometimes use MYSQL_TYPE_DOUBLE (when it fits into Num) but sometimes needs to be sent as MYSQL_TYPE_NEWDECIMAL. Prefer to use the Double as it should be considerably cheaper (CPU vs bandwidth) despite the extra tests to see fit though I did not use a benchmark to prove that. FatRat always uses MYSQL_TYPE_NEWDECIMAL. We can assume numbers are very large based on the developers type choice. Closes #76
- Loading branch information
Showing
2 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters