Added space in SELECT TOP clause

This commit is contained in:
Sergey Kurt 2017-03-14 14:31:52 +03:00
parent b783311248
commit 4f02886c2b

View file

@ -48,7 +48,7 @@ func buildSelectQuery(q *Query) (*bytes.Buffer, []interface{}) {
if q.dialect.UseTopClause {
if q.limit != 0 && q.offset == 0 {
fmt.Fprintf(buf, " TOP (%d)", q.limit)
fmt.Fprintf(buf, " TOP (%d) ", q.limit)
}
}