We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 2ca4ee5 commit fe56531Copy full SHA for fe56531
src/providers/postgres/qgspostgresprovider.cpp
@@ -3098,6 +3098,12 @@ long QgsPostgresProvider::featureCount() const
3098
if ( featuresCounted >= 0 )
3099
return featuresCounted;
3100
3101
+ // See: https://issues.qgis.org/issues/17388 - QGIS crashes on featureCount())
3102
+ if ( ! connectionRO() )
3103
+ {
3104
+ return 0;
3105
+ }
3106
+
3107
// get total number of features
3108
QString sql;
3109
0 commit comments