Fix output of randomizer

This commit is contained in:
Patrick O'brien 2016-08-19 19:56:27 +10:00
parent d28b3f4b62
commit d40058c3ce
2 changed files with 2 additions and 2 deletions

View file

@ -207,7 +207,7 @@ func randomizeField(s *Seed, field reflect.Value, fieldType string, canBeNull bo
} }
if value == nil { if value == nil {
return errors.Errorf("unsupported type: %T", typ.String()) return errors.Errorf("unsupported type: %s", typ.String())
} }
field.Set(reflect.ValueOf(value)) field.Set(reflect.ValueOf(value))

View file

@ -237,7 +237,7 @@ func PrefixStringSlice(str string, strs []string) []string {
} }
// Placeholders generates the SQL statement placeholders for in queries. // Placeholders generates the SQL statement placeholders for in queries.
// For example, ($1,$2,$3),($4,$5,$6) etc. // For example, ($1,$2,$3),($4,$5, $6) etc.
// It will start counting placeholders at "start". // It will start counting placeholders at "start".
func Placeholders(count int, start int, group int) string { func Placeholders(count int, start int, group int) string {
buf := GetBuffer() buf := GetBuffer()