Skip to content
Permalink
Browse files

[spatialite] Implement rewind()

  • Loading branch information
m-kuhn committed Jun 22, 2013
1 parent ef838c7 commit 345458ee76ce261b0dd28b9a1b22fe71f0bc2cbb
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/providers/spatialite/qgsspatialitefeatureiterator.cpp
@@ -109,8 +109,18 @@ bool QgsSpatiaLiteFeatureIterator::nextFeature( QgsFeature& feature )

bool QgsSpatiaLiteFeatureIterator::rewind()
{
// TODO: implement. use sqlite3_reset
return false;
if ( mClosed )
return false;

if ( sqlite3_reset( sqliteStatement ) == SQLITE_OK )
{
return true;
}
else
{
return false;
}
}
}

bool QgsSpatiaLiteFeatureIterator::close()

0 comments on commit 345458e

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