Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mssql] Add workaround for incorrect geometry system type returned by sp_describe_first_result_set #60909

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

nyalldawson
Copy link
Collaborator

Some (versions?) (setups?) of SQL server incorrectly report that the system type for a geometry columns is "image" in their sp_describe_first_result_set results.

Let's just automatically override this and set it back to "geometry" if we know that the column is actually the geometry column.

Fixes broken query layers on these databases

** THIS IS IMPOSSIBLE TO UNIT TEST **

… sp_describe_first_result_set

Some (versions?) (setups?) of SQL server incorrectly report that
the system type for a geometry columns is "image" in their
sp_describe_first_result_set results.

Let's just automatically override this and set it back to "geometry"
if we know that the column is actually the geometry column.

Fixes broken query layers on these databases
@github-actions github-actions bot added this to the 3.44.0 milestone Mar 10, 2025
Copy link

github-actions bot commented Mar 10, 2025

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit c95eab0)

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit c95eab0)

@nyalldawson nyalldawson merged commit f4e3641 into qgis:master Mar 10, 2025
35 of 36 checks passed
@nyalldawson nyalldawson deleted the image_type_workaround branch March 10, 2025 09:44
@Gabriel-Diosan
Copy link

I have tested this fix and can confirm it works. Spatial features now show up as expected.

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