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

BUG: Not returning dict #2

Closed
pedromorgan opened this issue Feb 16, 2014 · 3 comments · Fixed by #3
Closed

BUG: Not returning dict #2

pedromorgan opened this issue Feb 16, 2014 · 3 comments · Fixed by #3

Comments

@pedromorgan
Copy link
Contributor

After a bit of research have found that

  cur = con.cursor(cursor_factory=psycopg2.extras.DictCursor) 

should be

cur = con.cursor(cursor_factory=psycopg2.extras.RealDictCursor)

https://github.com/raisoblast/bottle-pgsql/blob/master/bottle_pgsql.py#L92

Stackoverflow answer
http://stackoverflow.com/questions/6739355/dictcursor-doesnt-seem-to-work-under-psycopg2

@raisoblast
Copy link
Owner

thanks @pedromorgan, send me a PR :)

pedromorgan added a commit to daffodil/bottle-pgsql that referenced this issue Feb 25, 2014
@pedromorgan pedromorgan mentioned this issue Feb 25, 2014
raisoblast added a commit that referenced this issue Feb 26, 2014
@gzur
Copy link

gzur commented May 22, 2014

This patch has not been pushed to pip yet.

@raisoblast
Copy link
Owner

thanks @gzur, i just pushed the patch to pypi

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 a pull request may close this issue.

3 participants