Re: Array with a lower bound>1, PostgreSQL 8.3.6
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, 24/02/2009 alle 21.35 +0100, Karsten Hilbert ha scritto: > > I don't have a clear idea about how to map > > the array but surely I want the _length_ be the same in both > postgresql > > and Python. > The dict would do that, wouldn't it ? Sure. But if we really want to provide support for this (and I agree with Tim, I don't see any use for arrays not starting at 1) I custom type that maps indices on a list using a fixed offset would be much better. federico -- Federico Di Gregorio http://people.initd.org/fog Debian GNU/Linux Developer [email protected] INIT.D Developer fog-NGVKUo/i/[email protected] Viviamo in un mondo reale, Ciccio. -- Lucy _______________________________________________ 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) iEYEABECAAYFAkmkW8IACgkQvcCgrgZGjetqTACgl9IUMG3KdJ8VaaIYSoXqlrL4 PE4AoKh6ih0u63AWEesOjWSGKu8eJuu6 =G8ww -----END PGP SIGNATURE-----