-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trim spaces before checking if an upstream is a prepared query
Fixes #224. If a user puts spaces between their upstreams in the annotation, the first section of a prepared query later in the list shows up as ` prepared_query`. We were doing a direct comparison of this value with `prepared_query`, which is incorrect. This change trims the spaces on the first part of an upstream before checking its type. Adds several different tests to verify the behavior with multiple upstreams defined.
- Loading branch information
Showing
2 changed files
with
59 additions
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
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