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

Re-use possibly cached postgis_version from pgsql description method #47393

Merged

Conversation

strk
Copy link
Contributor

@strk strk commented Feb 16, 2022

While trying to fix multiple postgis_version() queries from DBManager TopoViewer plugin I spotted code in qgspostgresprovider.cpp locally calling postgis_version() rather than fetching that info from the QgsPostgresConn associated object (which is possibly cached).

This change does NOT fix #47391 but seems to be a good change to me, in general (reduces code duplication).

@strk strk requested review from jef-n and rouault February 16, 2022 11:06
@strk strk self-assigned this Feb 16, 2022
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.

Multiple calls to postgis_version() when using TopoViewer DBManager plugin
2 participants