Skip to content

Commit

Permalink
postgres provider: cast to text in uniqueStringsMatching (fixes #19180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 19, 2018
1 parent bbfccdc commit e3f63d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -1663,7 +1663,7 @@ QStringList QgsPostgresProvider::uniqueStringsMatching( int index, const QString
sql += QStringLiteral( " ( %1 ) AND " ).arg( mSqlWhereClause );
}

sql += QStringLiteral( " %1 ILIKE '%%2%'" ).arg( quotedIdentifier( fld.name() ), substring );
sql += QStringLiteral( " %1::text ILIKE '%%2%'" ).arg( quotedIdentifier( fld.name() ), substring );


sql += QStringLiteral( " ORDER BY %1" ).arg( quotedIdentifier( fld.name() ) );
Expand Down

0 comments on commit e3f63d8

Please sign in to comment.