1) getlo().unlink() doesn't raise an error if the LO doesn't exist, even though
strace shows that libpq is returning an error.

2) while debugging the first issue, I noticed that pgmodule.c: connGetLO()
seems to stuff an Oid into an int.  If I understand correctly that should be
type:Oid, and use "OI" format ?  I reported last year a similar issue involving
pygres typecasting.

BTW, there's an unreleased change to pygres allowing query_formatted() without
params.  I wondered if that might be released soon.  It's not just saving a
couple lines; that's more or less essential in order for us to be able to use
"with"/context manager.  As currently exists, we have to variously call
db.query() or db.query_formatted(), even though everywhere else we just call
db.query() (which itself calls query_formatted when params are passed).

Thanks,
Justin
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to