Skip to content

Commit bc09ab3

Browse files
committedAug 23, 2011
keep cached crendential when getting geom type from thread (fix related to commit cddd427)
1 parent cddd427 commit bc09ab3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/providers/postgres/qgspgsourceselect.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,9 @@ void QgsGeomColumnTypeThread::getLayerTypes()
641641
uri.setPassword( password );
642642

643643
pd = PQconnectdb( uri.connectionInfo().toLocal8Bit() );
644+
if ( PQstatus( pd ) == CONNECTION_OK )
645+
QgsCredentials::instance()->put( mConnInfo, username, password );
646+
644647
}
645648

646649
if ( PQstatus( pd ) == CONNECTION_OK )

0 commit comments

Comments
 (0)
Please sign in to comment.