You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's happening here is that when we decode a JsonAdapter param, the adapter returns the param as a sql quoted string. I think what we want to do is prevent that from happening and simply have it return the JSON string.
The str call is effectively what we return today from _decode for this parameter. The problem is that the rendered form that's used to request the Select or Explain data now has a string that contains the sql wrapping ' characters. Instead we just want a string of '{"foo": "bar"}' to be the parameter.
Consider this simple query (data is a
JSONField
):The sql panel will show this query correctly:
But
Sel
andExpl
fail with an exception:cursor.execute()
fails because of the triple quotation marks(?).The text was updated successfully, but these errors were encountered: