-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapted test to new provider changes
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6b715c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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='''6b715c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 :
6b715c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.