Re: "No results" exception on insert - Mailing list pgsql-jdbc

From Mike D'Agosta
Subject Re: "No results" exception on insert
Date
Msg-id 5.1.0.14.0.20010508130028.00b0eea0@dev.tolosatech.com
Whole thread Raw
In response to "No results" exception on insert  (Brian_Williams@i2.com)
List 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


pgsql-jdbc by date:

Previous
From: Bruce Momjian
Date:
Subject: Outstanding patches
Next
From: Jeremy Buchmann
Date:
Subject: Re: "No results" exception on insert