fix pass []any as any in variadic function by asasalint (#5012)

* fix pass []any as any in variadic function

* add change log
This commit is contained in:
alingse
2022-07-10 14:39:46 +08:00
committed by GitHub
parent 493e7db20b
commit 890caddfb3
6 changed files with 7 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ func (d *DB) QueryContext(ctx context.Context, query string, args ...interface{}
}
func (d *DB) QueryRow(query string, args ...interface{}) *sql.Row {
return (*orm.DB)(d).QueryRow(query, args)
return (*orm.DB)(d).QueryRow(query, args...)
}
func (d *DB) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row {