bug fixed

This commit is contained in:
Lunny Xiao 2015-01-13 17:31:08 +08:00
parent 66ba6f849e
commit 8402302cc7
1 changed files with 1 additions and 1 deletions

View File

@ -1235,7 +1235,7 @@ func (statement *Statement) genSelectSql(columnStr string) (a string) {
}
var orderStr string
if len(statement.OrderStr) > 0 {
orderStr = " " + statement.OrderStr
orderStr = " ORDER BY " + statement.OrderStr
}
mssqlCondi = fmt.Sprintf("(%s NOT IN (SELECT TOP %d %s%s%s%s))",
column, statement.Start, column, fromStr, whereStr, orderStr)