Skip to content

Commit

Permalink
[spatialite] Implement rewind()
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 22, 2013
1 parent ef838c7 commit 345458e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/providers/spatialite/qgsspatialitefeatureiterator.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 345458e

Please sign in to comment.