mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-24 00:04:42 -04:00
fix slowdown of r12418
git-svn-id: http://svn.osgeo.org/qgis/trunk@12440 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
3bee39d351
commit
97d5e901b6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user