Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

loadsql command cannot handle queries with > or < #55

Closed
erykoff opened this issue Feb 2, 2016 · 2 comments
Closed

loadsql command cannot handle queries with > or < #55

erykoff opened this issue Feb 2, 2016 · 2 comments

Comments

@erykoff
Copy link

erykoff commented Feb 2, 2016

The do_loadsql function treats the > and < as special breaking characters (presumably related to the output code). But these are valid sql comparison operators prior to the semicolon (;) at the end of the command. So any query with > or < is invalid via loadsql.

@hoyleb
Copy link

hoyleb commented Feb 18, 2016

I had a similar problem, so I changed to this function [within a python script]
d = connection.query_to_pandas(query, prefetch='')

which worked. Recall you don't need to end the query with a ';' in the python script-level interface

mgckind added a commit that referenced this issue Apr 21, 2016
@mgckind
Copy link
Owner

mgckind commented Apr 21, 2016

Thanks for spotting this. I'm going through some of the old issues right now. I fixed this, now it should work as expected

@mgckind mgckind closed this as completed Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants