Skip to content

Fix zero-value pagination, composite CREATE ids, and batched RETURN DIFF parsing#18

Open
cnpap wants to merge 1 commit intosurrealdb:mainfrom
cnpap:main
Open

Fix zero-value pagination, composite CREATE ids, and batched RETURN DIFF parsing#18
cnpap wants to merge 1 commit intosurrealdb:mainfrom
cnpap:main

Conversation

@cnpap
Copy link
Copy Markdown

@cnpap cnpap commented Mar 18, 2026

This PR fixes three query-builder edge cases and adds focused unit coverage in the existing query test files.

Changes:

  • preserve LIMIT 0 and START 0 instead of dropping them due to truthy checks
  • preserve composite RecordIdValue inputs in create(tb, id) instead of stringifying them
  • make BatchQuery.execute() reuse the same result handling as single-query execution for RETURN DIFF

Tests were added to:

  • tests/unit/query/select.test.ts
  • tests/unit/query/create.test.ts
  • tests/unit/query/batch.test.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant