Re: Configure Psycopg to send results are strings.
Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Organization | initd.org |
| Message-ID | <[email protected]> |
Il giorno mar, 17/06/2008 alle 15.06 +0300, Taavi Kuusik ha scritto: > Hello, > > I was wondering if there's a way to configure Psycopg2 in such a way > that all query results are returned as strings instead of their Postgres > type? In theory yes, you can just register an "identity" typecaster that does just return the input string for every type. federico -- Federico Di Gregorio http://people.initd.org/fog Debian GNU/Linux Developer [email protected] INIT.D Developer fog-NGVKUo/i/[email protected] If we are going to teach "creation science" as an alternative to evolution, then we should also teach the stork theory as an alternative to biological reproduction. -- Judith Hayes _______________________________________________ Psycopg mailing list Psycopg-IAPFreCvJWPBWskQ1e/[email protected] http://lists.initd.org/mailman/listinfo/psycopg
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkhXsS0ACgkQvcCgrgZGjeurIACgtnDKWtGh2lUqLIIm5+XRySZq 3x8AoLwCG9McZG39c5Naxw8Suu1ron0H =71HX -----END PGP SIGNATURE-----