fix(bun): spread variadic args correctly in ColumnExpr

This commit is contained in:
Hein
2026-09-28 12:01:38 +02:00
parent e8fbbede7e
commit 6687a7a5cd
2 changed files with 32 additions and 1 deletions
+1 -1
View File
@@ -339,7 +339,7 @@ func (b *BunSelectQuery) Column(columns ...string) common.SelectQuery {
func (b *BunSelectQuery) ColumnExpr(query string, args ...interface{}) common.SelectQuery {
if len(args) > 0 {
b.query = b.query.ColumnExpr(query, args)
b.query = b.query.ColumnExpr(query, args...)
} else {
b.query = b.query.ColumnExpr(query)
}