Re: ProgrammingError: can't adapt (None)
Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Organization | initd.org |
| Message-ID | <[email protected]> |
Il giorno lun, 09/03/2009 alle 19.42 +0100, Hartmut Goebel ha scritto: > Federico Di Gregorio schrieb: > > > Yes but they are converted to array not to something that can be used in > > an insert. Anyway, "can't adapt" is an error. What's the content of the > > row? > > It's simply "None" :-) Then it should work. Can you try the following? >>> import psycopg2 >>> import psycopg2.extensions >>> psycopg2.extensions.adapt((None,)) <psycopg2.extensions.SQL_IN object at 0x7fe0cde9f3d0> -- Federico Di Gregorio http://people.initd.org/fog Debian GNU/Linux Developer [email protected] INIT.D Developer fog-NGVKUo/i/[email protected] And anyone who yells "fork" deserves to get one stuck in them. -- Dan Winship _______________________________________________ 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) iEYEABECAAYFAkm1fPwACgkQvcCgrgZGjeuNpQCfeQg4HlFEmKtpAjfveRJaUWYY yMAAn3ZFaJOlHNc8E/xP+Y/b/dD6LdbA =gmYD -----END PGP SIGNATURE-----