Re: Bug report: psycopg2 doesn't allow large-object write() for large strings.

Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Organization initd.org
Message-ID <1242767496.4218.0.camel@erin>
Il giorno mar, 19/05/2009 alle 14.04 -0700, Will Kraytos ha scritto:
> >>> import psycopg2
> >>> conn = psycopg2.connect('user=postgres')
> >>> lobject = conn.lobject()
> >>> lobject.write('*' * 10000)
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> psycopg2.OperationalError
> >>> lobject.write('*' * 1000)
> 1000
> As you can see, lobject.write(s) works where s is 1KB, but fails for a
> 10KB string. This is for psycopg 2.0.10.

Thanks. I'll check this one ASAP.

federico

-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                [email protected]
INIT.D Developer                                           fog-NGVKUo/i/[email protected]
                      Sei una bergogna. Vergonga. Vergogna. -- Valentina

_______________________________________________
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)

iEYEABECAAYFAkoTIIEACgkQvcCgrgZGjeuJvQCfXhhOhZo7pWL1XBS8lK6Bqfbk
q7YAn3S1enGy3NRkLw1K5QkwnJtMq4wV
=RHoF
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.