@rouault can you please have a look? I had to change this test after your recent modifications to the wfst provider: an empty sql in the uri get parsed incorrectly as ' table='''
This is a generic behaviour of QgsDataSourceURI I didn't touch. Any character after sql= is considered as a string (no quoting). So sql='' is parsed as quote quote.
qgsdatasourceuri.cpp :
if ( pname == "sql" )
{
// rest of line is a sql where clause
skipBlanks( uri, i );
mSql = uri.mid( i );
break;
}
ok, got it. I'll change the test either using an ordered dict to store the parameters or using a string to make sure that sql stay at the end of the string.
This comment has been minimized.
@rouault can you please have a look? I had to change this test after your recent modifications to the wfst provider: an empty
sql
in the uri get parsed incorrectly as ' table='''This comment has been minimized.
This is a generic behaviour of QgsDataSourceURI I didn't touch. Any character after sql= is considered as a string (no quoting). So sql='' is parsed as quote quote.
qgsdatasourceuri.cpp :
This comment has been minimized.
ok, got it. I'll change the test either using an ordered dict to store the parameters or using a string to make sure that
sql
stay at the end of the string.