Skip to content

Commit

Permalink
Use forward only cursor in all queries
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest authored and alexbruy committed Apr 7, 2012
1 parent 90b5956 commit 8392504
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/mssql/qgsmssqlprovider.cpp
Expand Up @@ -423,6 +423,7 @@ void QgsMssqlProvider::loadFields()
foreach( QString pk, pkCandidates )
{
mQuery.clear();
mQuery.setForwardOnly( true );
if (!mQuery.exec( QString( "select count(distinct [%1]), count([%1]) from [%2].[%3]" )
.arg( pk )
.arg( mSchemaName )
Expand Down

0 comments on commit 8392504

Please sign in to comment.