Skip to content
Permalink
Browse files

fix slowdown of r12418

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12440 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 13, 2009
1 parent 1415ff6 commit 6aa474605104272905230c0cb4f41843cb653354
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/providers/postgres/qgspostgresprovider.cpp
@@ -1645,6 +1645,12 @@ void QgsPostgresProvider::findColumns( tableCols& cols )
"view_schema=%1 AND view_name=%2" )
.arg( quotedValue( mSchemaName ) )
.arg( quotedValue( mTableName ) );

if ( !primaryKey.isEmpty() )
{
viewColumnSql += QString( " AND column_name=%1" ).arg( quotedValue( primaryKey ) );
}

Result viewColumnResult = connectionRO->PQexec( viewColumnSql );

//find out view definition

0 comments on commit 6aa4746

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