Skip to content

support params in sql panel that cannot be JSON encoded by default JSONEncoder #882

Closed
@zt-initech

Description

@zt-initech

If sql params are values that cannot be encoded by the built-in json.JSONEncoder, then the sql panel doesn't get the params and subsequently can't perform the query or EXPLAIN the query.

In my case, I often have params that are instance of datetime.datetime.

I currently use the following patch: zt-initech@47e7664

It is not very nice. I don't like using both JSON and pickle, and there are probably other problems.

How do you think this problem should be fixed?
For example, should params always be pickled?
Can you help me fix this patch to get it merged upstream?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions