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

JSONB support? #35

Open
AndreaCrotti opened this issue Aug 4, 2017 · 2 comments
Open

JSONB support? #35

AndreaCrotti opened this issue Aug 4, 2017 · 2 comments

Comments

@AndreaCrotti
Copy link

I'm having some problems running sqltap (version 0.3.10) when there is a JSONB field in one of the models.
It doesn't seem to handle dictionaries very well in general..

Is it a known issue? (could not find it reported)

cls = <class 'sqltap.sqltap.QueryStats'>
params = {'allow_supplier_project_creation': False, 'contribution_edit_reacceptance': True, 'contribution_time_enabled': True, 'created_at': datetime.datetime(2017, 8, 4, 12, 38, 46, 131500), ...}

    @classmethod
    def calculate_params_hash(cls, params):
        h = 0
        for k in sorted(params.keys()):
>           h ^= 10009 * hash(params[k])
E           TypeError: unhashable type: 'dict'
@AndreaCrotti
Copy link
Author

After I created this issue I noticed that it was already fixed in master actually (and with the new version), but the new version is not released on pypi.
Any plans to release that at some point?

@DanCardin
Copy link

Ditto, a new release of master would be convenient for us!

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

2 participants