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 8B72A3A46B4 for ; Thu, 18 Nov 2004 22:40:58 +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 66595-09 for ; Thu, 18 Nov 2004 22:40:47 +0000 (GMT) Received: from hotmail.com (bay24-f31.bay24.hotmail.com [64.4.18.81]) by svr1.postgresql.org (Postfix) with ESMTP id 396BD3A3D19 for ; Thu, 18 Nov 2004 22:40:48 +0000 (GMT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 18 Nov 2004 14:40:11 -0800 Message-ID: Received: from 129.128.182.84 by by24fd.bay24.hotmail.msn.com with HTTP; Thu, 18 Nov 2004 22:39:22 GMT X-Originating-IP: [129.128.182.84] X-Originating-Email: [xingzc_he@hotmail.com] X-Sender: xingzc_he@hotmail.com From: "jessica xingzc_he" To: pgsql-jdbc@postgresql.org Subject: deleteRow or updateRow after insertRow Date: Thu, 18 Nov 2004 15:39:22 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 18 Nov 2004 22:40:11.0979 (UTC) FILETIME=[907D39B0:01C4CDBF] 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/141 X-Sequence-Number: 11563 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