Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
code layout
  • Loading branch information
elpaso committed Sep 18, 2019
1 parent b70d42a commit 55f2379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -1051,7 +1051,7 @@ bool QgsPostgresProvider::loadFields()
{
// be tolerant in case of views: this might be a field used as a key
const QgsPostgresProvider::Relkind type = relkind();
if ( ( type == Relkind::View || type == Relkind::MaterializedView ) && parseUriKey(mUri.keyColumn()).contains(fieldName) )
if ( ( type == Relkind::View || type == Relkind::MaterializedView ) && parseUriKey( mUri.keyColumn( ) ).contains( fieldName ) )
{
// Assume it is convertible to text
fieldType = QVariant::String;
Expand Down

0 comments on commit 55f2379

Please sign in to comment.