Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
database provider: fix andWhereClauses
  • Loading branch information
jef-n committed Aug 4, 2015
1 parent 0c2b510 commit c27f357
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/providers/oracle/qgsoracleprovider.cpp
Expand Up @@ -466,9 +466,9 @@ QString QgsOracleUtils::whereClause( QgsFeatureIds featureIds, const QgsFields &

QString QgsOracleUtils::andWhereClauses( const QString& c1, const QString& c2 )
{
if ( c1.isNull() )
if ( c1.isEmpty() )
return c2;
if ( c2.isNull() )
if ( c2.isEmpty() )
return c1;

return QString( "(%1) AND (%2)" ).arg( c1 ).arg( c2 );
Expand Down
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -550,9 +550,9 @@ QString QgsPostgresUtils::whereClause( QgsFeatureIds featureIds, const QgsFields

QString QgsPostgresUtils::andWhereClauses( const QString& c1, const QString& c2 )
{
if ( c1.isNull() )
if ( c1.isEmpty() )
return c2;
if ( c2.isNull() )
if ( c2.isEmpty() )
return c1;

return QString( "(%1) AND (%2)" ).arg( c1 ).arg( c2 );
Expand Down

0 comments on commit c27f357

Please sign in to comment.