Skip to content

Commit 225a860

Browse files
committed
Use limit in mysql tests as it won't work without it
1 parent 5107f38 commit 225a860

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/mysql/test_offset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ TEST(mysql, test_offset) {
4242
sqlgen::write(conn, people1).value();
4343

4444
const auto query =
45-
sqlgen::read<std::vector<Person>> | order_by("id"_c) | offset(3);
45+
sqlgen::read<std::vector<Person>> | order_by("id"_c) | limit(-1) | offset(3);
4646

4747
const auto people2 = query(conn).value();
4848

0 commit comments

Comments
 (0)