Skip to content

Commit 6f82a89

Browse files
committed
postgres provider: reload fields if a cursor query fails (fixes #8242)
1 parent 3b6146f commit 6f82a89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/providers/postgres/qgspostgresfeatureiterator.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause )
326326
{
327327
// reloading the fields might help next time around
328328
rewind();
329+
P->loadFields();
329330
return false;
330331
}
331332
}

0 commit comments

Comments
 (0)