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

Fix PG trust metadata layer loading #38833

Merged
merged 2 commits into from
Sep 18, 2020

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Sep 17, 2020

Fixes #38809

Followup 760347c

@elpaso elpaso added Data Provider Related to specific vector, raster or mesh data providers Regression Something which used to work, but doesn't anymore Bug Either a bug report, or a bug fix. Let's hope for the latter! labels Sep 17, 2020
@github-actions github-actions bot added this to the 3.16.0 milestone Sep 17, 2020
@andreasneumann
Copy link
Member

andreasneumann commented Sep 17, 2020 via email

@elpaso elpaso force-pushed the bugfix-gh38809-pg-trust-epic-fail branch from c6dcc64 to 9d436cd Compare September 17, 2020 12:20
@@ -1544,7 +1544,7 @@ bool QgsVectorLayer::readXml( const QDomNode &layer_node, QgsReadWriteContext &c
}

QgsDataProvider::ProviderOptions options { context.transformContext() };
QgsDataProvider::ReadFlags flags = QgsDataProvider::ReadFlags();
QgsDataProvider::ReadFlags flags;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @elpaso, if this line has to be updated, It has to be fixed in other files. Will you do it or do you want that I create a PR just for this ?

This line has been introduced with this PR #38464

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generated code is totally equivalent, I just find redundant call the default ctor explicitly. It's more a style matter, nothing important.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rldhont np.

On another topic I did not check if the same quotedIdentifier / quotedValue mistake was done elsewhere with your original PR or any followup. Can you please check that it only affected PG?

@nyalldawson nyalldawson merged commit 3d67b37 into qgis:master Sep 18, 2020
@elpaso elpaso deleted the bugfix-gh38809-pg-trust-epic-fail branch September 18, 2020 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't read PG data sources when saved in version 3.10 and using service / auth combo
4 participants