Commit graph

14 commits

Author SHA1 Message Date
Aaron L
82bffe9144 Adjust import paths 2017-07-30 20:34:54 -07:00
Genadi Samokovarov
64206cfe07 Fix randomization for enums with single value
Hey there,

I hit a bug that panicked the tests with:

    panic: invalid argument to Intn

The problem happened, because I have a Postgres `ENUM` with a single
value, that caused a `rand.Intn(0)` call, which panics on zero.

See: https://golang.org/src/math/rand/rand.go?s=4112:4142#L129
2017-06-14 16:53:55 +03:00
Patrick O'brien
e8723a2797 Fix modulus fix 2017-03-04 20:15:05 +10:00
Patrick O'brien
60a40eaf48 Fix randomize vals wrapping around to ngative vals
* Use modulus to ensure values are within valid ranges
2017-03-04 12:27:09 +10:00
Patrick O'brien
0d09921d4c Fix enum null.String support, add mysql support 2016-11-12 15:58:41 +10:00
Patrick O'brien
d891bcb9f0 Add randomize support for enums, add enums for pq 2016-11-12 15:47:24 +10:00
Patrick O'brien
6f0fce21b8 Update schema w/ nullbyte and byte, fix randomizer 2016-11-12 13:47:59 +10:00
Patrick O'brien
86ca3bbcea Fixed import paths for null package, add byte typ 2016-11-12 12:02:44 +10:00
Patrick O'brien
5ab8c628ed Fix randomize for mysql nil bytes 2016-09-20 13:45:32 +10:00
Patrick O'brien
fdeecbf106 Fix insert and randomize errors, fix time.Time
* MySQL requires timeParsing enabled
* Update readme to reflect this requirement
2016-09-19 15:22:32 +10:00
Patrick O'brien
40847b4b42 Fix null bytes for mysql randomize 2016-09-18 13:17:06 +10:00
Patrick O'brien
bb62a81c38 Fix randomize for bytea and int32 2016-09-18 12:36:25 +10:00
Patrick O'brien
40ce5838f3 Fix hstore naming 2016-09-15 16:58:41 +10:00
Aaron L
5149df8359 Move everything to better package structure 2016-09-14 20:45:09 -07:00