fix: Legacy MsSQL - legacy offset select sql command bug #2446

This commit is contained in:
Dacian Stanciu 2024-04-24 12:49:51 +03:00
parent 589acfff86
commit 64c546b219
1 changed files with 2 additions and 1 deletions

View File

@ -19,8 +19,9 @@ func (statement *Statement) isUsingLegacyLimitOffset() bool {
func (statement *Statement) writeMssqlLegacySelect(buf *builder.BytesWriter, columnStr string) error {
return statement.writeMultiple(buf,
statement.writeStrings("SELECT"),
statement.writeDistinct,
statement.writeTop,
statement.writeDistinct,
statement.writeStrings(" ", columnStr),
statement.writeFrom,
statement.writeWhereWithMssqlPagination,
statement.writeGroupBy,