Skip to content

Commit

Permalink
Make QgsDataSourceURI uri string parser skip invalid portions instead…
Browse files Browse the repository at this point in the history
… of skipping the entire string
  • Loading branch information
manisandro authored and m-kuhn committed Sep 9, 2015
1 parent fc0843c commit 258851a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/qgsdatasourceuri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ QgsDataSourceURI::QgsDataSourceURI( QString uri )

if ( i == uri.length() || uri[i] != '=' )
{
QgsDebugMsg( "= expected after parameter name" );
return;
QgsDebugMsg( QString( "= expected after parameter name, skipping text '%1'" ).arg( pname ) );
continue;
}

i++;
Expand Down Expand Up @@ -101,7 +101,6 @@ QgsDataSourceURI::QgsDataSourceURI( QString uri )
i++;

int start = i;
QString col;
while ( i < uri.length() && uri[i] != ')' )
{
if ( uri[i] == '\\' )
Expand Down

0 comments on commit 258851a

Please sign in to comment.