Skip to content

Commit

Permalink
Merge pull request #6548 from GawainLynch/hotfix/postgresql-prefill-i…
Browse files Browse the repository at this point in the history
…nteger

[3.2] prefill breaks on PostgreSQL
  • Loading branch information
rossriley committed Apr 6, 2017
2 parents 96daa45 + 3a2bc7d commit 9eedc8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Legacy/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,11 @@ private function preFillSingle($key, $contenttype, $images)
$content[$field] = rand(0, 1);
break;
case 'float':
$content[$field] = rand(-1000, 1000) + (rand(0, 1000) / 1000);
break;
case 'number': // number is deprecated
case 'integer':
$content[$field] = rand(-1000, 1000) + (rand(0, 1000) / 1000);
$content[$field] = (int) rand(-1000, 1000) + (rand(0, 1000) / 1000);
break;
}
}
Expand Down

0 comments on commit 9eedc8a

Please sign in to comment.