Re: wrong documentation and others .....

From: Gabriel Lopez <gabilm(at)dif(dot)um(dot)es>
To: psql <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: wrong documentation and others .....
Date: 2000-10-06 11:51:26
Message-ID: 39DDBCBE.BF5F9748@dif.um.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Has anybody try this?

I don't know why this error appear.

Please, reply me.

Thanks, Gabi.

Gabriel Lopez escribió:

> Troels Jegbjaerg Moerch escribió:
>
> > Hi try this: File file = new File("myimage.gif");
> > FileInputStream fis = new FileInputStream(file);
> > byte[] theByteArray = new byte[fis.available()];
> > fis.read(theByteArray);
> >
> > PreparedStatement ps = con.prepareStatement("insert insert into
> > images values (?,?)"); ps.setString(1,file.getName());
> > ps.setBytes(2, theByteArray);
> > ps.execute();
> > con.commit();
> > ps.close();
> > fis.close();
> > TJM
>
> Yes, it work fine, but each 9 times it fail:
>
> FATAL 1: my bits moved right off the end of the world!
> Recreate index pg_attribute_relid_attnam_index.
>
> Anybody known why?
>
> Thanks
>
> --
> Gabriel López Millán
> Facultad de Informática -Universidad de Murcia
> 30001 Murcia - España (Spain)
> Telf: +34-968-364644 E-mail: gabilm(at)dif(dot)um(dot)es

--
Gabriel López Millán
Facultad de Informática -Universidad de Murcia
30001 Murcia - España (Spain)
Telf: +34-968-364644 E-mail: gabilm(at)dif(dot)um(dot)es

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Didier Boudigue 2000-10-06 12:27:39 JDBC and BLOB in Postgres
Previous Message Erny 2000-10-05 17:18:21 Driver or Postgres doesn't report refer. integr. errors