Update internal/statements/legacy_select.go (#2400)

fix #2399, When Oracle enables USE_LEGACY_LIMIT_OFFSET, the Where condition fails

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2400
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Kos <kos@noreply.gitea.com>
Co-committed-by: Kos <kos@noreply.gitea.com>
This commit is contained in:
Kos 2024-02-05 11:13:17 +00:00 committed by Lunny Xiao
parent 5301cc0ae9
commit 11e96d9654
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ func (statement *Statement) writeOracleLegacySelect(buf *builder.BytesWriter, co
return statement.writeMultiple(buf,
statement.writeSelectColumns(columnStr),
statement.writeFrom,
statement.writeWhere,
statement.writeOracleLimit(columnStr),
statement.writeGroupBy,
statement.writeHaving,