Skip to content
Permalink
Browse files

postgres provider: cast to text in uniqueStringsMatching (fixes #19180)

  • Loading branch information
jef-n committed Sep 19, 2018
1 parent bbfccdc commit e3f63d8811506791ec197b6356cb7e9c4059fe03
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -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() ) );

0 comments on commit e3f63d8

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