Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Write query to tempfile to avoid command line limitation on Windows #63

Merged
merged 1 commit into from
Sep 9, 2019

Conversation

zarrarkhan
Copy link
Collaborator

@zarrarkhan zarrarkhan commented Sep 9, 2019

On Windows the length of a command is limited to 2047. In rgcam we pass the query as an argument on the command line and with some of the more complex queries, or with exceedingly long re-write lists we can run into this limit. As a work around we will just write the query to a temp file instead and run it from there.

@pralitp pralitp self-requested a review September 9, 2019 20:15
@codecov
Copy link

codecov bot commented Sep 9, 2019

Codecov Report

Merging #63 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted Files Coverage Δ
R/querymi.R 84.95% <100%> (+0.41%) ⬆️
R/importgcam.R 94.21% <0%> (-0.23%) ⬇️

@pralitp pralitp merged commit a8aa8f5 into master Sep 9, 2019
@pralitp pralitp deleted the temp-file-query branch September 9, 2019 20:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants