Skip to content

Commit

Permalink
postgres provider: reload fields if a cursor query fails (fixes #8242)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 10, 2013
1 parent 3b6146f commit 6f82a89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/postgres/qgspostgresfeatureiterator.cpp
Expand Up @@ -326,6 +326,7 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause )
{
// reloading the fields might help next time around
rewind();
P->loadFields();
return false;
}
}
Expand Down

0 comments on commit 6f82a89

Please sign in to comment.