Re: disable object adaptation
Manlio Perillo <[email protected]> Sat, 13 Mar 2010 23:15:06 +0100
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
Federico Di Gregorio ha scritto: > On 13/03/2010 14:38, Manlio Perillo wrote: >> Hi. >> >> Is it possible to completely disable object adaptation in psycopg2? > > No, because you have no way to send data to the database then. Ok. Query parameters will be raw strings. > In fact > if you really want, just do your own query building and quoting and call > execute() without parameters. That will completely skip object adaptation. > What about objects in the query result set? Thanks Manlio