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 9BFAC3A48C1 for ; Fri, 19 Nov 2004 01:52:17 +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 18612-09 for ; Fri, 19 Nov 2004 01:52:04 +0000 (GMT) Received: from hotmail.com (bay24-f31.bay24.hotmail.com [64.4.18.81]) by svr1.postgresql.org (Postfix) with ESMTP id 041843A46B4 for ; Fri, 19 Nov 2004 01:52:07 +0000 (GMT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 18 Nov 2004 17:52:07 -0800 Message-ID: Received: from 129.128.182.84 by by24fd.bay24.hotmail.msn.com with HTTP; Fri, 19 Nov 2004 01:51:40 GMT X-Originating-IP: [129.128.182.84] X-Originating-Email: [xingzc_he@hotmail.com] X-Sender: xingzc_he@hotmail.com In-Reply-To: <419D2FB4.2030407@fastcrypt.com> From: "jessica xingzc_he" To: pgsql-jdbc@postgresql.org Subject: Re: deleteRow or updateRow after insertRow Date: Thu, 18 Nov 2004 18:51:40 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 19 Nov 2004 01:52:07.0196 (UTC) FILETIME=[6017E5C0:01C4CDDA] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.8 tagged_above=0.0 required=5.0 tests=MSGID_FROM_MTA_HEADER X-Spam-Level: X-Archive-Number: 200411/146 X-Sequence-Number: 11568 The server is 7.4.5, and the jdbc driver is pg74.213.jdbc3. thanks >From: Dave Cramer >Reply-To: pg@fastcrypt.com >To: jessica xingzc_he >CC: pgsql-jdbc@postgresql.org >Subject: Re: [JDBC] deleteRow or updateRow after insertRow >Date: Thu, 18 Nov 2004 18:26:44 -0500 > >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 >