xorm/tests
FlyingOnion 551de3767c modify limit offset implement (#2188)
Oracle and SQLServer specific: When `LIMIT OFFSET` function is needed, use `OFFSET <offset> ROWS FETCH NEXT <limit> ROWS ONLY` to replace legacy subquery.

SQLServer specific: When `ORDER BY` is not set and `OFFSET FETCH` is set, set `statement.orderStr` to `1` (`ORDER BY 1`). See [here](https://learn.microsoft.com/zh-cn/sql/t-sql/queries/select-order-by-clause-transact-sql?view=sql-server-ver16).

MySQL specific: When limit is 0 and offset > 0, use `LIMIT 9223372036854775807` ($2^{63}-1$). See comments [here](15d171ea55/internal/statements/query.go (L314)).

Reviewed-on: https://gitea.com/xorm/xorm/pulls/2188
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: FlyingOnion <731677080@qq.com>
Co-committed-by: FlyingOnion <731677080@qq.com>
2023-09-20 02:07:03 +00:00
..
testdata Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
cache_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
engine_dm_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
engine_group_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
engine_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
main_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
performance_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
processors_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
rows_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
schema_test.go Add Sync options to ignore constrains and indices (#2320) 2023-08-09 03:28:52 +00:00
session_cols_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
session_cond_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
session_count_test.go modify limit offset implement (#2188) 2023-09-20 02:07:03 +00:00
session_delete_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
session_exist_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
session_find_test.go Add test for max ( id ) (#2316) 2023-09-16 13:48:49 +00:00
session_get_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
session_insert_test.go Fix deleted tag attribute zeroTime is not DatabaseTZ (#2299) 2023-08-07 04:28:55 +00:00
session_iterate_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
session_pk_test.go fix the error in mysql: unknown colType UNSIGNED FLOAT (#2143) 2023-09-16 15:43:12 +00:00
session_query_test.go modify limit offset implement (#2188) 2023-09-20 02:07:03 +00:00
session_raw_test.go Exec support conversion data (#1970) 2023-08-07 10:54:57 +00:00
session_sum_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
session_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
session_tx_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
session_update_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
sync_test.go Remove dead code from session.SyncWithOptions() (#2323) 2023-09-16 14:41:02 +00:00
tags_test.go Fix deleted tag attribute zeroTime is not DatabaseTZ (#2299) 2023-08-07 04:28:55 +00:00
tests.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
time_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
types_null_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00
types_test.go Move integrations -> tests (#2314) 2023-07-26 10:44:41 +00:00