Skip to content

Commit 1224b2b

Browse files
committed
Merge branch 'release-tooling' into sync/upstream-step8
2 parents 279e958 + 1f54617 commit 1224b2b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎tests/test_cypher.c‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3120,12 +3120,14 @@ TEST(cypher_apply_limit) {
31203120
ASSERT_TRUE(r.truncated);
31213121
cbm_cypher_result_free(&r);
31223122

3123-
/* LIMIT above max_rows → explicit limit wins */
3123+
/* LIMIT above max_rows → the engine budget still bounds the projection:
3124+
* an explicit limit larger than max_rows is capped at max_rows, not
3125+
* allowed to bypass it (#1364, oversized-limit guard). */
31243126
memset(&r, 0, sizeof(r));
31253127
rc = cbm_cypher_execute(s, "MATCH (f:Function) RETURN f.name LIMIT 30", "lim", 10, &r);
31263128
ASSERT_EQ(rc, 0);
3127-
ASSERT_EQ(r.row_count, 30);
3128-
ASSERT_FALSE(r.truncated);
3129+
ASSERT_EQ(r.row_count, 10);
3130+
ASSERT_TRUE(r.truncated);
31293131
cbm_cypher_result_free(&r);
31303132

31313133
cbm_store_close(s);

0 commit comments

Comments
 (0)