mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-20 23:39:51 +01:00
Merge pull request #211 from Thinkscape/patch-1
Fix integer values overflowing on signed INTEGER columns.
This commit is contained in:
commit
fa21a4ca90
@ -27,7 +27,7 @@ class ColumnTypeGuesser
|
||||
case 'smallint':
|
||||
return function() { return mt_rand(0,65535); };
|
||||
case 'integer':
|
||||
return function() { return mt_rand(0,intval('4294967295')); };
|
||||
return function() { return mt_rand(0,intval('2147483647')); };
|
||||
case 'bigint':
|
||||
return function() { return mt_rand(0,intval('18446744073709551615')); };
|
||||
case 'float':
|
||||
|
Loading…
x
Reference in New Issue
Block a user