bug fixed #194
This commit is contained in:
parent
dcc529b68a
commit
66ba6f849e
|
@ -1233,8 +1233,12 @@ func (statement *Statement) genSelectSql(columnStr string) (a string) {
|
|||
column = statement.RefTable.ColumnsSeq()[0]
|
||||
}
|
||||
}
|
||||
mssqlCondi = fmt.Sprintf("(%s NOT IN (SELECT TOP %d %s%s%s))",
|
||||
column, statement.Start, column, fromStr, whereStr)
|
||||
var orderStr string
|
||||
if len(statement.OrderStr) > 0 {
|
||||
orderStr = " " + statement.OrderStr
|
||||
}
|
||||
mssqlCondi = fmt.Sprintf("(%s NOT IN (SELECT TOP %d %s%s%s%s))",
|
||||
column, statement.Start, column, fromStr, whereStr, orderStr)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue