Re: "No results" exception on insert

From: "Mike D'Agosta" <mdagosta(at)tolosatech(dot)com>
To: Brian_Williams(at)i2(dot)com, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: "No results" exception on insert
Date: 2001-05-08 20:02:05
Message-ID: 5.1.0.14.0.20010508130028.00b0eea0@dev.tolosatech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


>Statement stmt;
>ResultSet rs = stmt.executeQuery("insert into users values ( 'joe', 'blow'
>)");
>
>The problem is that the executeQuery throws an Exception. The message
>is "No results were returned by the query":

Try executeUpdate() for insert, create and delete.

Mike

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jeremy Buchmann 2001-05-08 20:28:26 Re: "No results" exception on insert
Previous Message Bruce Momjian 2001-05-08 19:57:24 Outstanding patches