Skip to content

Commit

Permalink
[FEATURE] oracle provider: add Feature limit support for feature requ…
Browse files Browse the repository at this point in the history
…ests (followup 3ece33f)
  • Loading branch information
jef-n committed Dec 4, 2015
1 parent edb16d0 commit 5e4312b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/providers/oracle/qgsoraclefeatureiterator.cpp
Expand Up @@ -105,6 +105,14 @@ QgsOracleFeatureIterator::QgsOracleFeatureIterator( QgsOracleFeatureSource* sour
whereClause += QgsOracleConn::databaseTypeFilter( "featureRequest", mSource->mGeometryColumn, mSource->mRequestedGeomType );
}

if ( request.limit() >= 0 )
{
if ( !whereClause.isEmpty() )
whereClause += " AND ";

whereClause += QString( "rownum<=%1" ).arg( request.limit() );
}

if ( !mSource->mSqlWhereClause.isEmpty() )
{
if ( !whereClause.isEmpty() )
Expand Down

0 comments on commit 5e4312b

Please sign in to comment.