Skip to content

Commit

Permalink
Merge pull request fzaninotto#211 from Thinkscape/patch-1
Browse files Browse the repository at this point in the history
Fix integer values overflowing on signed INTEGER columns.
  • Loading branch information
fzaninotto committed Dec 3, 2013
2 parents 6794d95 + 277edbc commit fa21a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Faker/ORM/Doctrine/ColumnTypeGuesser.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function guessFormat($fieldName, ClassMetadata $class)
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':
Expand Down

0 comments on commit fa21a4c

Please sign in to comment.