Home > Archive > PostgreSQL JDBC > November 2005 > Reg : Exception in Postgresql with Java









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Reg : Exception in Postgresql with Java
smitha

2005-11-23, 7:24 am

I use the Databse Postgresql with Java Platform. My Program( Java Program) get executed by creating a postgres user. The query get executed and it is affected in the Database. But my Java Program throws a Exception "No results were returned by the quer
y ". Why this exception is coming? Should I load some other Driver for this?. Please tell the solution.

smitha



---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
Achilleus Mantzios

2005-11-23, 7:24 am

O smitha έγραψε στις Nov 23, 2005 :

> I use the Databse Postgresql with Java Platform. My Program( Java Program) get executed by creating a postgres user. The query get executed and it is affected in the Database. But my Java Program throws a Exception "No results were returned by the qu

ery ". Why this exception is coming? Should I load some other Driver for this?. Please tell the solution.
>
> smitha


In such cases it is more convinient to present your code also.
However it seems that you try to executeQuery() whereas you should
executeUpdate() or execute(SQL).

>
>
>
> ---------------------------------
> Yahoo! FareChase - Search multiple travel sites in one click.


--
-Achilleus


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com