It looks like this doesn't work correctly. query_prepared sends its arguments to postgres without adaptation. For example pygres lists are sent to postgres as [1,2] rather than {1,2} to be handled as arrays, and dict(a=1) is sent as {'a': 1} rather than {"a": 1} for json.
I'm not sure what the right way to handle that is, or even if my diagnosis is quite right. I think it's doing the right thing for all the simplest types: str, bool, int, float, timestamp. But dicts and lists seem broke, and probably anything else for which str() method isn't what postgres needs. Note that we really want to avoid needing to quote everything; the utility for us is being able to avoid the overhead of isinstance. Justin _______________________________________________ PyGreSQL mailing list PyGreSQL@Vex.Net https://mail.vex.net/mailman/listinfo/pygresql