Skip to content

CBL-8554: Fix "FROM _" in queries on non-default collections - #2515

Merged
pasin merged 1 commit into
release/3.3from
fix/from-underscore-CBL-8554
Jun 25, 2026
Merged

CBL-8554: Fix "FROM _" in queries on non-default collections#2515
pasin merged 1 commit into
release/3.3from
fix/from-underscore-CBL-8554

Conversation

@snej

@snej snej commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

In a query compiled by C4Collection::newQuery(), the collection name "_" should be interpreted as that collection, not the default one.

The new QueryTranslator doesn't do this correctly, but we didn't notice because we didn't have any tests for it. CBL doesn't use this feature, but Edge Server does (see CM-1658), so we need to fix it.

In a query compiled by C4Collection::newQuery(), the collection name
"_" should be interpreted as that collection, not the default one.

The new QueryTranslator doesn't do this correctly, but we didn't
notice because we didn't have any tests for it. CBL doesn't use this
feature, but Edge Server does, so we need to fix it.
@snej
snej requested a review from jianminzhao June 24, 2026 21:58
@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown

This is a release branch and commits are restricted.

Please confirm this PR is one of the following:

  • A response to a customer ask
  • A change per our security policy
  • A non-functional change (i.e. changes needed for building an older version)
  • A change that has been granted an exception (please comment)

@cbl-bot

cbl-bot commented Jun 24, 2026

Copy link
Copy Markdown

Code Coverage Results:

Type Percentage
branches 65.64
functions 78.18
instantiations 71.74
lines 77.22
regions 73.5

@pasin
pasin merged commit 13b36fc into release/3.3 Jun 25, 2026
9 of 10 checks passed
@pasin
pasin deleted the fix/from-underscore-CBL-8554 branch June 25, 2026 04:51
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.

3 participants