Skip to content

[mssql] Move count of feature subset rows to featureCount #66401

Open
nyalldawson wants to merge 3 commits into
qgis:masterfrom
nyalldawson:fix_64894
Open

[mssql] Move count of feature subset rows to featureCount #66401
nyalldawson wants to merge 3 commits into
qgis:masterfrom
nyalldawson:fix_64894

Conversation

@nyalldawson

Copy link
Copy Markdown
Collaborator

Description

Match behavior of other providers, where the feature count is NOT retrieved immediately on calling setSubsetString, and swap setSubsetString to a much cheaper SQL to test the validity of the string.

Also matches the provider to the same feature count caching behavior as seen in other providers (postgres, ogr) where the value is retrieved once and never updated until manually re-requested

Fixes #64894

AI tool usage

  • AI tool(s) (Copilot, Claude, or something similar) supported my development of this PR. See our policy about AI tool use. Use of AI tools must be indicated. Failure to be honest might result in banning.

Match behavior of other providers, where the feature count is NOT
retrieved immediately on calling setSubsetString, and swap
setSubsetString to a much cheaper SQL to test the validity of
the string.

Also matches the provider to the same feature count caching
behavior as seen in other providers (postgres, ogr) where the
value is retrieved once and never updated until manually
re-requested

Fixes qgis#64894
Copy logic from postgres provider
@github-actions github-actions Bot added this to the 4.2.0 milestone Jun 8, 2026
@nyalldawson nyalldawson reopened this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant