Skip to content
Permalink
Browse files

[FEATURE] oracle provider: add Feature limit support for feature requ…

…ests (followup 3ece33f)
  • Loading branch information
jef-n committed Dec 4, 2015
1 parent edb16d0 commit 5e4312b13c42d76ed2ba246a180d0aa08ff15b4c
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/providers/oracle/qgsoraclefeatureiterator.cpp
@@ -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() )

0 comments on commit 5e4312b

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