Add aliases to register_(hstore|json) methods for use with NamedTuples #112

Merged
merged 2 commits into from Aug 3, 2015

Projects

None yet

2 participants

@helminster

It is impossible to call register_hstore or register_json with NamedTupleCursor cursor factory because of conflicts in keys -- 'oid' and 'oid'. I added aliases to avoid this issue.

@haizaar
Collaborator
haizaar commented Aug 3, 2015

Thanks. Can you please add unittests that verify this bug?

@helminster

Added unittest

@haizaar haizaar merged commit f5f7b4c into FSX:master Aug 3, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@haizaar
Collaborator
haizaar commented Aug 3, 2015

Excellent. Thank you!

@helminster

You are welcome, just please update package on pypi, if you will. Thanks!

@haizaar
Collaborator
haizaar commented Aug 3, 2015

Just pushed 2.1.1 to PyPi.

@helminster

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment