fix for MsSQL legacy bug Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-on: https://gitea.com/xorm/xorm/pulls/2448 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Dacian Stanciu <daci28@yahoo.com> Co-committed-by: Dacian Stanciu <daci28@yahoo.com>
This commit is contained in:
parent
8094e98a8f
commit
4e74c80b67
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue