Skip to content

Commit

Permalink
ref: avoid panic when using Columns multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
thoas committed Jun 4, 2021
1 parent c7aafb4 commit 893939d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions builder/select.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ func (b Select) Distinct() Select {

// Columns adds result columns to the query.
func (b Select) Columns(args ...interface{}) Select {
if len(b.query.Expressions) != 0 {
panic("loukoum: select builder has columns already defined")
}
if len(args) == 0 {
args = []interface{}{"*"}
}
Expand Down

0 comments on commit 893939d

Please sign in to comment.