X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 91C643A3BA1 for ; Thu, 18 Nov 2004 23:26:56 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79612-08 for ; Thu, 18 Nov 2004 23:26:45 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 6CCEF3A1ECF for ; Thu, 18 Nov 2004 23:26:46 +0000 (GMT) Received: (qmail 7850 invoked from network); 18 Nov 2004 23:26:39 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 18 Nov 2004 23:26:39 -0000 Message-ID: <419D2FB4.2030407@fastcrypt.com> Date: Thu, 18 Nov 2004 18:26:44 -0500 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: Postgres International User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jessica xingzc_he Cc: pgsql-jdbc@postgresql.org Subject: Re: deleteRow or updateRow after insertRow References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/144 X-Sequence-Number: 11566 You may need to tell us a little more like what version of the driver you are using ? --dc-- jessica xingzc_he wrote: > does anyone know why this happen? > > I do first: > ResultSet.moveToInsertRow(); > ResultSet.update...(1, ...); > .... > rs.insertRow(); // a new row inserted into table > > but after that, I may move to some other row, say using > Result.absolute(..) or so, and then > 1. update > ResultSet.update...(1, ...); > ... > ResultSet.updateRow(); // it does not update the corresponding row in > the table, but also no > exception thrown. > > 2. delete > ResultSet.deleteRow(); // throws exception: Can not call deleteRow() > when on insert row. > > anybody has any clue? thanks > > zhenchang > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > > -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561