Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Allow for very large Integers
Browse files Browse the repository at this point in the history
  • Loading branch information
rbt committed Nov 23, 2022
1 parent 87ef7fa commit 67549a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/DBDish/mysql/StatementHandle.rakumod
Expand Up @@ -117,9 +117,9 @@ method execute(*@params --> DBDish::StatementHandle) {
when Blob { $st = MYSQL_TYPE_BLOB; $_ }
when Str { .encode }
when Int {
when $_ > 2^63 { .encode }
when $_ < -1 * 2^63 { .encode }
default {
if $_ > 2^63 or $_ < -1 * 2^63 {
say "BIG NUMBER !!!! "; .encode }
else {
say "TEST TEST TEST !!! $_";
$st = MYSQL_TYPE_LONGLONG;
Blob[int64].new($_);
Expand Down

0 comments on commit 67549a9

Please sign in to comment.