@@ -341,7 +341,7 @@ bool QgsSpatiaLiteFeatureIterator::prepareStatement( const QString &whereClause,
341
341
342
342
if ( mFetchGeometry )
343
343
{
344
- sql += QStringLiteral ( " , AsBinary(%1)" ).arg ( QgsSpatiaLiteProvider ::quotedIdentifier ( mSource ->mGeometryColumn ) );
344
+ sql += QStringLiteral ( " , AsBinary(%1)" ).arg ( QgsSqliteUtils ::quotedIdentifier ( mSource ->mGeometryColumn ) );
345
345
mGeomColIdx = colIdx;
346
346
}
347
347
sql += QStringLiteral ( " FROM %1" ).arg ( mSource ->mQuery );
@@ -375,7 +375,7 @@ bool QgsSpatiaLiteFeatureIterator::prepareStatement( const QString &whereClause,
375
375
376
376
QString QgsSpatiaLiteFeatureIterator::quotedPrimaryKey ()
377
377
{
378
- return mSource ->mPrimaryKey .isEmpty () ? QStringLiteral ( " ROWID" ) : QgsSpatiaLiteProvider ::quotedIdentifier ( mSource ->mPrimaryKey );
378
+ return mSource ->mPrimaryKey .isEmpty () ? QStringLiteral ( " ROWID" ) : QgsSqliteUtils ::quotedIdentifier ( mSource ->mPrimaryKey );
379
379
}
380
380
381
381
QString QgsSpatiaLiteFeatureIterator::whereClauseFid ()
@@ -405,12 +405,12 @@ QString QgsSpatiaLiteFeatureIterator::whereClauseRect()
405
405
if ( mRequest .flags () & QgsFeatureRequest::ExactIntersect )
406
406
{
407
407
// we are requested to evaluate a true INTERSECT relationship
408
- whereClause += QStringLiteral ( " Intersects(%1, BuildMbr(%2)) AND " ).arg ( QgsSpatiaLiteProvider ::quotedIdentifier ( mSource ->mGeometryColumn ), mbr ( mFilterRect ) );
408
+ whereClause += QStringLiteral ( " Intersects(%1, BuildMbr(%2)) AND " ).arg ( QgsSqliteUtils ::quotedIdentifier ( mSource ->mGeometryColumn ), mbr ( mFilterRect ) );
409
409
}
410
410
if ( mSource ->mVShapeBased )
411
411
{
412
412
// handling a VirtualShape layer
413
- whereClause += QStringLiteral ( " MbrIntersects(%1, BuildMbr(%2))" ).arg ( QgsSpatiaLiteProvider ::quotedIdentifier ( mSource ->mGeometryColumn ), mbr ( mFilterRect ) );
413
+ whereClause += QStringLiteral ( " MbrIntersects(%1, BuildMbr(%2))" ).arg ( QgsSqliteUtils ::quotedIdentifier ( mSource ->mGeometryColumn ), mbr ( mFilterRect ) );
414
414
}
415
415
else if ( mFilterRect .isFinite () )
416
416
{
@@ -424,7 +424,7 @@ QString QgsSpatiaLiteFeatureIterator::whereClauseRect()
424
424
QString idxName = QStringLiteral ( " idx_%1_%2" ).arg ( mSource ->mIndexTable , mSource ->mIndexGeometry );
425
425
whereClause += QStringLiteral ( " %1 IN (SELECT pkid FROM %2 WHERE %3)" )
426
426
.arg ( quotedPrimaryKey (),
427
- QgsSpatiaLiteProvider ::quotedIdentifier ( idxName ),
427
+ QgsSqliteUtils ::quotedIdentifier ( idxName ),
428
428
mbrFilter );
429
429
}
430
430
else if ( mSource ->mSpatialIndexMbrCache )
@@ -433,13 +433,13 @@ QString QgsSpatiaLiteFeatureIterator::whereClauseRect()
433
433
QString idxName = QStringLiteral ( " cache_%1_%2" ).arg ( mSource ->mIndexTable , mSource ->mIndexGeometry );
434
434
whereClause += QStringLiteral ( " %1 IN (SELECT rowid FROM %2 WHERE mbr = FilterMbrIntersects(%3))" )
435
435
.arg ( quotedPrimaryKey (),
436
- QgsSpatiaLiteProvider ::quotedIdentifier ( idxName ),
436
+ QgsSqliteUtils ::quotedIdentifier ( idxName ),
437
437
mbr ( mFilterRect ) );
438
438
}
439
439
else
440
440
{
441
441
// using simple MBR filtering
442
- whereClause += QStringLiteral ( " MbrIntersects(%1, BuildMbr(%2))" ).arg ( QgsSpatiaLiteProvider ::quotedIdentifier ( mSource ->mGeometryColumn ), mbr ( mFilterRect ) );
442
+ whereClause += QStringLiteral ( " MbrIntersects(%1, BuildMbr(%2))" ).arg ( QgsSqliteUtils ::quotedIdentifier ( mSource ->mGeometryColumn ), mbr ( mFilterRect ) );
443
443
}
444
444
}
445
445
else
@@ -462,7 +462,7 @@ QString QgsSpatiaLiteFeatureIterator::mbr( const QgsRectangle &rect )
462
462
463
463
QString QgsSpatiaLiteFeatureIterator::fieldName ( const QgsField &fld )
464
464
{
465
- QString fieldname = QgsSpatiaLiteProvider ::quotedIdentifier ( fld.name () );
465
+ QString fieldname = QgsSqliteUtils ::quotedIdentifier ( fld.name () );
466
466
const QString type = fld.typeName ().toLower ();
467
467
if ( type.contains ( QLatin1String ( " geometry" ) ) || type.contains ( QLatin1String ( " point" ) ) ||
468
468
type.contains ( QLatin1String ( " line" ) ) || type.contains ( QLatin1String ( " polygon" ) ) )
0 commit comments