Skip to content

Commit

Permalink
Shorten comment and fix lower boundary
Browse files Browse the repository at this point in the history
As per discussion about 642c062 in #233.
  • Loading branch information
rbt committed Nov 24, 2022
1 parent 642c062 commit eceaee5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/DBDish/mysql/StatementHandle.rakumod
Expand Up @@ -117,10 +117,8 @@ method execute(*@params --> DBDish::StatementHandle) {
when Blob { $st = MYSQL_TYPE_BLOB; $_ }
when Str { .encode }
when Int {
# Handle anything larger than int64 as a string. This has a small
# performance penalty but so does using int128 for everything or
# detecting a best fit range. Assume most numbers are small.
if $_ > -2**63 and $_ < 2**63 {
# Handle anything larger than int64 as a string.
if -2**63 <= $_ <= 2**63 -1 {
$st = MYSQL_TYPE_LONGLONG;
Blob[int64].new($_);
} else {
Expand Down

0 comments on commit eceaee5

Please sign in to comment.