Skip to content
Permalink
Browse files

postgres: close connection when cursor can't be opened (fixes #10119)

  • Loading branch information
jef-n committed Jun 1, 2014
1 parent c94297a commit 779bf5fb33b33f22f1174384e9d9db442c2ce9e0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresfeatureiterator.cpp
@@ -377,8 +377,8 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause )
if ( !mConn->openCursor( mCursorName, query ) )
{
// reloading the fields might help next time around
rewind();
// TODO how to cleanly force reload of fields? P->loadFields();
close();
return false;
}

0 comments on commit 779bf5f

Please sign in to comment.
You can’t perform that action at this time.