Fix superfluous arg to placeholders

This commit is contained in:
Patrick O'brien 2016-09-09 17:57:01 +10:00
parent b1efbd21c7
commit 51b4f9b309

View file

@ -94,7 +94,7 @@ func (p *PostgresDriver) TableNames(schema string, whitelist, blacklist []string
args = append(args, w)
}
} else if len(blacklist) > 0 {
query += fmt.Sprintf(" and table_name not in (%s);", strmangle.Placeholders(len(blacklist), 2+len(whitelist), 1))
query += fmt.Sprintf(" and table_name not in (%s);", strmangle.Placeholders(len(blacklist), 2, 1))
for _, b := range blacklist {
args = append(args, b)
}