pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <jurka@ejurka.com>
To: bhanu reddy <bhanukumarreddy@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problem with storing Images in PostgreSQL
Date: Wed, 16 Nov 2005 08:34:13 -0800
Message-ID: <437B5F85.2040509@ejurka.com> (raw)
In-Reply-To: <20051116114302.32913.qmail@web30103.mail.mud.yahoo.com>
References: <20051116114302.32913.qmail@web30103.mail.mud.yahoo.com>

bhanu reddy wrote:
> 
> I am Bhanu and got ur id in forums. Can you please help me in solving 
> problem that I am facing with storing images?
> I am using PostgreSQL 8.0.3 and created a table like this:
> 

Please send postgresql jdbc help requests to the 
pgsql-jdbc@postgresql.org mailing list, not any individual directly.

http://jdbc.postgresql.org/lists.html#general

> java.sql.SQLException: ERROR:  type "lo" does not exist
>     at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
>     at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
>     at sun.jdbc.odbc.JdbcOdbc.SQLParamData(JdbcOdbc.java:4738)
>     at 
> sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:225)
>     at 
> sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPreparedStatement.java:136)
>     at com.coalition.jms.ObjectInDatabase.main(ObjectInDatabase.java:57)
> 

This shows you are not using the postgresql JDBC driver at all, but 
instead Sun's JDBC->ODBC bridge and the ODBC driver.  Please review your 
connection setup code and ensure you are setting up a JDBC connection.

http://jdbc.postgresql.org/documentation/80/index.html

Kris Jurka



Message-ID: <437B5F85.2040509@ejurka.com>
Permalink:  ../437B5F85.2040509@ejurka.com/
Also on:    postgresql.org/message-id/437B5F85.2040509@ejurka.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: jurka@ejurka.com, bhanukumarreddy@yahoo.com
  Subject: Re: Problem with storing Images in PostgreSQL
  In-Reply-To: <437B5F85.2040509@ejurka.com>
  References: <20051116114302.32913.qmail@web30103.mail.mud.yahoo.com> <437B5F85.2040509@ejurka.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox