Fix output of randomizer
This commit is contained in:
parent
d28b3f4b62
commit
d40058c3ce
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue