Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group