Re: disable object adaptation

Federico Di Gregorio <fog-NGVKUo/i/[email protected]> Sat, 13 Mar 2010 23:54:31 +0100
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On 13/03/2010 23:15, Manlio Perillo wrote:
>> 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?

This is not object adaptation, it is backend type casting. :)

You can replace all typecasters in psycopg2.extensions.string_types with
a single object that just returns the string it receive as argument
without doing any cast.

Hope this helps,
federico

-- 
Federico Di Gregorio                                       fog-NGVKUo/i/[email protected]
   I filosofi son come i sociologi: il mondo non lo capiscono. -- A.R.M.

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/[email protected]
http://lists.initd.org/mailman/listinfo/psycopg
signature.asc (application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkucF6cACgkQvcCgrgZGjevwKgCeONnVnxeGyrmJKA+BHR2dSoVz
yLUAoNKNvPcC3wt5oxluF4CUC7kX/eH0
=vgvb
-----END PGP SIGNATURE-----