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

Dict cursor support #193

Merged
merged 3 commits into from
Apr 22, 2016
Merged

Dict cursor support #193

merged 3 commits into from
Apr 22, 2016

Conversation

alyoshark
Copy link
Contributor

For those migrated from a data platform that uses dict cursor to iterate data set :)


cur.execute('SHOW TABLES')
tables = cur.fetchall()
assert any([t[0] == 'tmp_hive' for t in tables])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Square brackets superfluous here, no need to create a list.

@alyoshark
Copy link
Contributor Author

Hi @julienbaley , are we merging this PR? Else I need to maintain a local version to support dict cursor in legacy code XD

@julienbaley
Copy link
Contributor

I'm not part of the maintaining team! :) LGTM otherwise.

@alyoshark
Copy link
Contributor Author

LOL! Let's see how maintaining team decides then. Thanks a looooot pal

@wesm
Copy link
Contributor

wesm commented Apr 22, 2016

Looks good here. Merging, thank you

@wesm wesm merged commit d20d794 into cloudera:master Apr 22, 2016
@haosdent
Copy link

Orz

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

Successfully merging this pull request may close these issues.

4 participants