Skip to content

Commit 21e38bf

Browse files
author
Timofey S
committed
fix SELECT function
1 parent 773d268 commit 21e38bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (q *Query) Select() string {
127127
//
128128
func (q *Query) SELECT() string {
129129
if len(q.Fields) == 0 {
130-
return "*"
130+
return "SELECT *"
131131
}
132132
return fmt.Sprintf("SELECT %s", q.FieldsString())
133133
}

0 commit comments

Comments
 (0)