Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
keep cached crendential when getting geom type from thread (fix relat…
…ed to commit cddd427)
  • Loading branch information
brushtyler committed Aug 23, 2011
1 parent cddd427 commit bc09ab3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/postgres/qgspgsourceselect.cpp
Expand Up @@ -641,6 +641,9 @@ void QgsGeomColumnTypeThread::getLayerTypes()
uri.setPassword( password );

pd = PQconnectdb( uri.connectionInfo().toLocal8Bit() );
if ( PQstatus( pd ) == CONNECTION_OK )
QgsCredentials::instance()->put( mConnInfo, username, password );

}

if ( PQstatus( pd ) == CONNECTION_OK )
Expand Down

0 comments on commit bc09ab3

Please sign in to comment.