Closed Rovanion closed 6 years ago
@Rovanion Thanks for reporting. It was sort of a pre-emptive strategy. Removed this check now (refer PR #15) Marking the issue as fixed. Hope this solves your issue. Feel free to reopen this if it doesn't.
Thank you, hopefully it helps someone in the future. In the meantime I sidestepped the issue by using psycopg2 directly where jinjasql stopped me and I will unfortunately not have time to test this change in my code due to project deadlines.
I'm trying to insert some JSON data into my database through JinjaSQL and Psycopg2. Though I'm getting stopped by JinjaSQL as it has the following check: https://github.com/hashedin/jinjasql/blob/93c9bbceedd45c2439a9b3698e9bddfc5df61958/jinjasql/core.py#L104
If we bypass this check and register an adaptor for dictionaries Psycopg2 will gladly eat the dictionary.
Would it be possible to remove the is_dictionary check?